Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@k8s-master:~# cat app.yaml
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: my-nginx
- spec:
- selector:
- matchLabels:
- run: my-nginx
- replicas: 4
- strategy:
- type: RollingUpdate
- rollingUpdate:
- maxSurge: 1
- maxUnavailable: 25%
- template:
- metadata:
- labels:
- run: my-nginx
- spec:
- containers:
- - name: apple-app
- image: hashicorp/http-echo:0.2.3
- imagePullPolicy: ""
- readinessProbe:
- httpGet:
- path: /
- port: 5679
- initialDelaySeconds: 5
- periodSeconds: 5
- successThreshold: 1
- args:
- - "-text=xxx"
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: my-nginx
- labels:
- run: my-nginx
- spec:
- ports:
- - port: 5678
- protocol: TCP
- selector:
- run: my-nginx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement