Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: app-chat
- labels:
- app: app-chat
- spec:
- replicas: 3
- selector:
- matchLabels:
- app: app-chat
- strategy:
- # type: Recreate
- type: RollingUpdate
- template:
- metadata:
- labels:
- app: app-chat
- spec:
- hostAliases:
- - ip: "10.10.X.X"
- hostnames:
- - "same.host.name"
- restartPolicy: Always
- hostname: app-chat
- affinity:
- podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
- matchExpressions:
- - key: app
- operator: In
- values:
- - app-chat
- topologyKey: "kubernetes.io/hostname"
- containers:
- - name: app-chat
- image: app-chat
- env:
- - name: TZ
- value: "Europe/City"
- - name: PATH
- value: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- - name: NODE_VERSION
- value: "8.12.0"
- - name: YARN_VERSION
- value: "1.9.4"
- livenessProbe:
- tcpSocket:
- port: 3000
- ports:
- - containerPort: 3000
- hostPort: 3000
- name: app-chat
- volumeMounts:
- - name: app-chat-pv
- mountPath: /app/
- # command: ["/entrypoint.sh"]
- command: ["/bin/sh"]
- args: ["/entrypoint.sh user@x.x.x:path/app-chat.git"]
- volumes:
- - name: app-chat-pv
- persistentVolumeClaim:
- claimName: app-chat-pvc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement