Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubernetes pod init command run

apiVersion: v1
kind: Pod
metadata:
  name: myapp-pod
  labels:
    app: myapp
spec:
  containers:
  - name: myapp-container
    image: busybox:1.28
    command: ['sh', '-c', 'echo The app is running! && sleep 3600']
  initContainers:
  - name: init-myservice
    image: busybox:1.28
    command: ['sh', '-c', "until nslookup myservice.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for myservice; sleep 2; done"]
  - name: init-mydb
    image: busybox:1.28
    command: ['sh', '-c', "until nslookup mydb.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for mydb; sleep 2; done"]
Comment

PREVIOUS NEXT
Code Example
Shell :: watchman Makefile:4446: scm/watchman-Mercurial.o] Error 1 
Shell :: sudo install awk 
Shell :: melpa .tar not found emacs 
Shell :: papermc no gui 
Shell :: create fake json from console 
Shell :: remove telegraf from dembian 
Shell :: kubuntu snap app not showing 
Shell :: btrfs get disk utilization for subdirectory 
Shell :: more wsl2 images 
Shell :: condition expected: grep 
Shell :: tapping homebrew/core 
Shell :: raspberry pi autostart gui application 
Shell :: dgram i node 
Shell :: centos run command in background 
Shell :: How To Create Y/N Question On Batch Script 
Shell :: ffmpeg add cover art 
Shell :: copy too large file commmand linux 
Shell :: docker run from docker hub 
Shell :: head linux 
Shell :: download ubutu themes 
Shell :: see wifi password 
Shell :: download teamviewer for ubuntu 20.04 
Shell :: get name of files in directory 
Shell :: powershell vs bash 
Shell :: linux shell system commands 
Shell :: lintcode 
Shell :: docker commands 
Shell :: failed at the node-sass@4.13.1 postinstall script. 
Shell :: composer install delete from parameters.yml symfony 3 
Php :: php console log var_dump 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =