diff --git a/kubernetes/autoscale/k8s/autoscale.yaml b/kubernetes/autoscale/k8s/autoscale.yaml new file mode 100644 index 0000000..cda317f --- /dev/null +++ b/kubernetes/autoscale/k8s/autoscale.yaml @@ -0,0 +1,35 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: autoscale-test + namespace: default +spec: + replicas: 3 + selector: + matchLabels: + app: autoscale-test + template: + metadata: + labels: + app: autoscale-test + spec: + containers: + - name: echoservice + image: gcr.io/hip-wharf-319304/echoservice:latest + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 8080 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + resources: + requests: + cpu: "250m" + memory: "256Mi"