This commit is contained in:
parent
ce595c01c3
commit
347f7ec275
@ -1,21 +1,44 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: go_hello
|
name: hello-world
|
||||||
labels:
|
labels:
|
||||||
app: go_hello
|
app: hello-world
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.replicaCount }}
|
replicas: {{ .Values.replicaCount }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: go_hello
|
app: hello-world
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: go_hello
|
app: hello-world
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: go_hello
|
- name: hello-world
|
||||||
image: "git.gocommunity.ru/chertkov/do_simple:latest"
|
image: "git.gocommunity.ru/chertkov/do_simple:latest"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "8080"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "64Mi"
|
||||||
|
cpu: "50m"
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "100m"
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8080
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8080
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 5
|
||||||
@ -1,12 +1,12 @@
|
|||||||
kind: Service
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: go_hello_service
|
name: hello-world-service
|
||||||
labels:
|
|
||||||
app: go_hello
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: go_hello
|
app: hello-world
|
||||||
ports:
|
ports:
|
||||||
- port: 81
|
- protocol: TCP
|
||||||
targetPort: 8080
|
port: 80
|
||||||
|
targetPort: 8080
|
||||||
|
type: ClusterIP
|
||||||
Loading…
Reference in New Issue
Block a user