-
Notifications
You must be signed in to change notification settings - Fork 2
/
deployment.yaml
executable file
·66 lines (66 loc) · 1.26 KB
/
deployment.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
apiVersion: apps/v1
kind: Deployment
metadata:
name: new-eden-api
labels:
run: api
namespace: webapi
spec:
selector:
matchLabels:
run: api
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: api
spec:
containers:
- name: api
image: us.gcr.io/new-eden-storage-a5c23/chingy-webapi:v1.109
ports:
- containerPort: 8000
---
apiVersion: v1
kind: Service
metadata:
annotations:
cloud.google.com/load-balancer-type: "Internal"
name: api-service
namespace: webapi
spec:
type: NodePort
ports:
- port: 8000
targetPort: 8000
protocol: TCP
selector:
run: api
---
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
name: new-eden-tls
namespace: webapi
spec:
domains:
- api.new-eden.io
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
networking.gke.io/managed-certificates: new-eden-tls
kubernetes.io/ingress.global-static-ip-name: new-eden-ip
name: new-eden-ingress
namespace: webapi
spec:
defaultBackend:
service:
name: api-service
port:
number: 8000