-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathautodeployment.yaml
More file actions
177 lines (177 loc) · 4.35 KB
/
autodeployment.yaml
File metadata and controls
177 lines (177 loc) · 4.35 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: python-app
env: prod
name: python-app
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: python-app
env: prod
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: python-app
env: prod
spec:
containers:
- env:
- name: MYSQL_INSTANCE_NAME
valueFrom:
configMapKeyRef:
key: MYSQL_INSTANCE_NAME
name: python-app-config-mrqi
- name: MYSQL_PORT_3306_TCP_ADDR
valueFrom:
configMapKeyRef:
key: MYSQL_PORT_3306_TCP_ADDR
name: python-app-config-mrqi
- name: MYSQL_PORT_3306_TCP_PORT
valueFrom:
configMapKeyRef:
key: MYSQL_PORT_3306_TCP_PORT
name: python-app-config-mrqi
- name: MYSQL_USERNAME
valueFrom:
secretKeyRef:
key: MYSQL_USERNAME
name: credentials
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: MYSQL_PASSWORD
name: credentials
image: >-
gcr.io/kubernetesproject-328818/github.com/emrahbickingc/devops-python-app
imagePullPolicy: IfNotPresent
name: vngrs-sha256-1
---
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
labels:
app: python-app
env: prod
managedFields:
- apiVersion: autoscaling/v2beta1
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:kubectl.kubernetes.io/last-applied-configuration': {}
'f:labels':
.: {}
'f:app': {}
'f:env': {}
'f:spec':
'f:maxReplicas': {}
'f:metrics': {}
'f:minReplicas': {}
'f:scaleTargetRef':
'f:apiVersion': {}
'f:kind': {}
'f:name': {}
manager: kubectl-client-side-apply
operation: Update
time: '2021-10-12T21:40:24Z'
- apiVersion: autoscaling/v1
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
'f:autoscaling.alpha.kubernetes.io/conditions': {}
'f:status':
'f:currentReplicas': {}
manager: vpa-recommender
operation: Update
time: '2021-10-12T21:40:40Z'
name: python-app-hpa-vc7c
namespace: default
spec:
maxReplicas: 2
metrics:
- resource:
name: cpu
targetAverageUtilization: 80
type: Resource
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: python-app
---
apiVersion: v1
kind: Service
metadata:
finalizers:
- service.kubernetes.io/load-balancer-cleanup
generateName: python-app-
labels:
app: python-app
env: prod
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:generateName': {}
'f:labels':
.: {}
'f:app': {}
'f:env': {}
'f:spec':
'f:externalTrafficPolicy': {}
'f:ports':
.: {}
'k:{"port":80,"protocol":"TCP"}':
.: {}
'f:port': {}
'f:protocol': {}
'f:targetPort': {}
'f:selector':
.: {}
'f:app': {}
'f:env': {}
'f:sessionAffinity': {}
'f:type': {}
manager: GoogleCloudConsole
operation: Update
time: '2021-10-12T22:47:29Z'
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:finalizers':
.: {}
'v:"service.kubernetes.io/load-balancer-cleanup"': {}
'f:status':
'f:loadBalancer':
'f:ingress': {}
manager: kube-controller-manager
operation: Update
time: '2021-10-12T22:48:23Z'
name: python-app-76rl8
namespace: default
spec:
clusterIP: 10.44.12.96
externalTrafficPolicy: Cluster
ports:
- nodePort: 32346
port: 80
protocol: TCP
targetPort: 3000
selector:
app: python-app
env: prod
sessionAffinity: None
type: LoadBalancer