From 14e214e0b038bc0c98d5f5e0c00a73721aeaac2e Mon Sep 17 00:00:00 2001 From: Antti Viitala Date: Fri, 23 Aug 2024 13:36:22 +0800 Subject: [PATCH 1/2] feat: add valid deployment --- gitops-deployments/deployment.yaml | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 gitops-deployments/deployment.yaml diff --git a/gitops-deployments/deployment.yaml b/gitops-deployments/deployment.yaml new file mode 100644 index 0000000..3806cbb --- /dev/null +++ b/gitops-deployments/deployment.yaml @@ -0,0 +1,51 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: test-deployment-one + labels: + name: test-deployment-one + owner: Antvirf +spec: + strategy: + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + name: test-deployment-one + spec: + containers: + - image: stefanprodan/podinfo:6.0.0 + name: test-deployment-one + resources: + requests: + cpu: "20m" + memory: "55M" + livenessProbe: + httpGet: + path: /_status/healthz + port: 5000 + initialDelaySeconds: 90 + timeoutSeconds: 10 + readinessProbe: + httpGet: + path: /_status/healthz + port: 5000 + initialDelaySeconds: 30 + timeoutSeconds: 10 + env: + - name: ENVVARNAME + value: ENVVARVALUE + ports: + - containerPort: 5000 + name: test-deployment-one + volumeMounts: + - mountPath: /data + name: data + volumes: + - name: data + emptyDir: {} + restartPolicy: Always + imagePullPolicy: Always From 5ecbe7a83037ee11cb42801876007bea5ecfb1ee Mon Sep 17 00:00:00 2001 From: Antti Viitala Date: Fri, 23 Aug 2024 13:36:26 +0800 Subject: [PATCH 2/2] feat: add valid service --- gitops-deployments/service.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gitops-deployments/service.yaml diff --git a/gitops-deployments/service.yaml b/gitops-deployments/service.yaml new file mode 100644 index 0000000..01b9bf2 --- /dev/null +++ b/gitops-deployments/service.yaml @@ -0,0 +1,12 @@ +kind: Service +apiVersion: v1 +metadata: + name: test-service-two +spec: + selector: + app: test-app-one + type: ClusterIP + ports: + - name: http + port: 80 + targetPort: 8080