---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: varun-test-deployment
namespace: test-varun
spec:
replicas: 2
template:
metadata:
labels:
env: test
spec:
containers:
- name: front-end
image: nginx
ports:
- containerPort: 80
# command: command to run
# args: other agruments
# workingDir: working dir in containers when command run
# env: some env variables
# resources: any other resource of docker
# volumeMounts: and volume to mount
# livenessProbe:
# readinessProbe:
# livecycle:
# terminationMessagePath:
# imagePullPolicy:
# securityContext:
# stdin:
# stdinOnce:
# tty:
- name: rss-reader
image: nickchase/rss-php-nginx:v1
ports:
- containerPort: 88
kubectl.exe describe -f deployment-example.yml || kubectl.exe create -f deployment-example.yml