-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathtemp.yaml
52 lines (52 loc) · 1 KB
/
temp.yaml
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: gateway-server
namespace: team-a-dev
spec:
replicas: 1
selector:
matchLabels:
k8s-app: gateway-server
template:
metadata:
namespace: team-a-dev
labels:
k8s-app: gateway-server
spec:
containers:
- name: gateway-server
image: 076880417388.dkr.ecr.cn-northwest-1.amazonaws.com.cn/team-a:gateway-server-8
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
imagePullSecrets:
- name: ecr-secret
---
kind: Service
apiVersion: v1
metadata:
namespace: team-a-dev
name: gateway-server
spec:
selector:
k8s-app: gateway-server
ports:
- port: 8080
name: http
protocol: TCP
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: gateway-server
namespace: team-a-dev
spec:
rules:
- host: gateway.team-a.twu-china.cn
http:
paths:
- path: /
backend:
serviceName: gateway-server
servicePort: 8080