diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 621649b..3e22396 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -1,21 +1,44 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: go_hello + name: hello-world labels: - app: go_hello + app: hello-world spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: - app: go_hello + app: hello-world template: metadata: labels: - app: go_hello + app: hello-world spec: containers: - - name: go_hello - image: "git.gocommunity.ru/chertkov/do_simple:latest" + - name: hello-world + image: "git.gocommunity.ru/chertkov/do_simple:latest" + imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 \ No newline at end of file + - 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 \ No newline at end of file diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml index 40b2dad..671e9f5 100644 --- a/helm/templates/service.yaml +++ b/helm/templates/service.yaml @@ -1,12 +1,12 @@ -kind: Service apiVersion: v1 +kind: Service metadata: - name: go_hello_service - labels: - app: go_hello + name: hello-world-service spec: selector: - app: go_hello + app: hello-world ports: - - port: 81 - targetPort: 8080 \ No newline at end of file + - protocol: TCP + port: 80 + targetPort: 8080 + type: ClusterIP \ No newline at end of file