-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
75 lines (75 loc) · 1.48 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
67
68
69
70
71
72
73
74
75
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: fancy-portfolio-as
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: fancy-portfolio-dp
minReplicas: 2
maxReplicas: 5
metrics:
- type: "Resource"
resource:
name: "cpu"
targetAverageUtilization: 50
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fancy-portfolio-dp
spec:
replicas: 2
selector:
matchLabels:
app: fancy-portfolio
minReadySeconds: 15
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: fancy-portfolio
spec:
containers:
- image: gcr.io/jakub-skoneczny-portfolio-pwa/fancy-portfolio:1.2.0
imagePullPolicy: Always
name: fancy-portfolio
ports:
- containerPort: 3003
---
apiVersion: v1
kind: Service
metadata:
name: fancy-portfolio-service
spec:
type: NodePort
ports:
- port: 3003
protocol: TCP
targetPort: 3003
selector:
app: fancy-portfolio
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: fancy-portfolio-ingress
annotations:
networking.gke.io/managed-certificates: fancy-portfolio-certificate3
spec:
backend:
serviceName: fancy-portfolio-service
servicePort: 3003
---
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
name: fancy-portfolio-certificate3
spec:
domains:
- blog.jskoneczny.pl