diff --git a/deployment/helloworld-liveness-readiness.yml b/deployment/helloworld-liveness-readiness.yml new file mode 100644 index 0000000..f2870ee --- /dev/null +++ b/deployment/helloworld-liveness-readiness.yml @@ -0,0 +1,29 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: helloworld-readiness +spec: + replicas: 3 + template: + metadata: + labels: + app: helloworld + spec: + containers: + - name: k8s-demo + image: wardviaene/k8s-demo + ports: + - name: nodejs-port + containerPort: 3000 + livenessProbe: + httpGet: + path: / + port: nodejs-port + initialDelaySeconds: 15 + timeoutSeconds: 30 + readinessProbe: + httpGet: + path: / + port: nodejs-port + initialDelaySeconds: 15 + timeoutSeconds: 30