Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- apiVersion: apps/v1beta1
- kind: Deployment
- metadata:
- name: pez8
- spec:
- replicas: 2
- strategy:
- type: RollingUpdate
- rollingUpdate:
- maxSurge: 1
- maxUnavailable: 50%
- template:
- metadata:
- labels:
- app: pez8
- spec:
- terminationGracePeriodSeconds: 0
- dnsPolicy: "None"
- dnsConfig:
- nameservers:
- - 8.8.8.8
- - 8.8.4.4
- containers:
- - name: pez8
- imagePullPolicy: Always
- image: 294954198282.dkr.ecr.eu-west-1.amazonaws.com/pez8:latest
- ports:
- - containerPort: 3000
- readinessProbe:
- httpGet:
- path: /
- port: 3000
- initialDelaySeconds: 5
- periodSeconds: 5
- successThreshold: 1
- ---
- apiVersion: batch/v1beta1
- kind: CronJob
- metadata:
- name: pez8c
- spec:
- schedule: "0 */6 * * *"
- jobTemplate:
- spec:
- template:
- spec:
- containers:
- - name: pez8c
- image: appropriate/curl:latest
- args:
- - /bin/sh
- - -fs
- - http://a93c468ea09f511eaa7b306c534ea3a3-2141762307.eu-west-1.elb.amazonaws.com/?refresh=true
- restartPolicy: OnFailure
- ---
- kind: Service
- metadata:
- name: pez8
- apiVersion: v1
- spec:
- type: LoadBalancer
- selector:
- app: pez8
- ports:
- - name: http
- protocol: TCP
- port: 80
- targetPort: 3000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement