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 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