-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml.bak
64 lines (64 loc) · 1.38 KB
/
deploy.yml.bak
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
kind: Service
apiVersion: v1
metadata:
name: REPLACE_SERVICE_NAME
labels:
net.beedemo.deploy.type: workshop
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: REPLACE_SERVICE_NAME
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: REPLACE_SERVICE_NAME-staging
labels:
net.beedemo.deploy.type: workshop
spec:
replicas: 1
template:
metadata:
name: REPLACE_SERVICE_NAME
labels:
net.beedemo.deploy.type: workshop
app: REPLACE_SERVICE_NAME
env: staging
spec:
serviceAccountName: cjoc
containers:
- name: REPLACE_SERVICE_NAME
image: gcr.io/core-workshop/helloworld-nodejs:beedemo-sa-17
resources:
requests:
memory: "100Mi"
cpu: "50m"
imagePullPolicy: Always
ports:
- name: public
containerPort: 8080
securityContext:
runAsUser: 1000
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: REPLACE_SERVICE_NAME
labels:
net.beedemo.deploy.type: workshop
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- http:
paths:
- path: /REPLACE_SERVICE_NAME/?(.*)
backend:
serviceName: REPLACE_SERVICE_NAME
servicePort: 80
host: staging.cb-sa.io