forked from containers101/demochat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eks_deployment2.yml
73 lines (73 loc) · 1.65 KB
/
eks_deployment2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
kind: Service
apiVersion: v1
metadata:
name: demochat2
namespace: demochat
spec:
ports:
- protocol: TCP
port: 80
targetPort: 5000
selector:
app: demochat2
type: NodePort
sessionAffinity: None
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: demochat2
namespace: demochat
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/tags: Environment=uat,Team=test
spec:
rules:
- host: demochat2.uat.bgl360.com.au
http:
paths:
- backend:
serviceName: demochat2
servicePort: 80
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: demochat2
namespace: demochat
annotations:
deployment.kubernetes.io/revision: '1'
spec:
replicas: 1
selector:
matchLabels:
app: demochat2
template:
metadata:
labels:
app: demochat2
spec:
containers:
- name: demochat2
image: r.cfcr.io/{{CF_ACCOUNT}}/samer-shami/demochat:master
imagePullPolicy: Always
ports:
- containerPort: 5000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
imagePullSecrets:
- name: codefresh-generated-r.cfcr.io-cfcr-demochat
restartPolicy: Always
terminationGracePeriodSeconds: 40
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 50%
maxSurge: 50%