diff --git a/delpoyment.yaml b/delpoyment.yaml new file mode 100644 index 0000000..dea1ff0 --- /dev/null +++ b/delpoyment.yaml @@ -0,0 +1,38 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-blog-api + labels: + app: python +spec: + replicas: 3 + selector: + matchLabels: + app: python + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 33% + template: + metadata: + labels: + app: python + spec: + containers: + - name: python + image: inkletblot/simple-blog-api: + ports: + - containerPort: 5000 + livenessProbe: + httpGet: + path: /posts + port: 5000 + initialDelaySeconds: 2 + periodSeconds: 2 + readinessProbe: + httpGet: + path: /posts + port: 5000 + initialDelaySeconds: 2 + periodSeconds: 2 \ No newline at end of file