From aadab3e16ed76a9454c47778a49cd7078b89cbec Mon Sep 17 00:00:00 2001 From: Khushi Malhotra <156056460+khushimalhoz@users.noreply.github.com> Date: Mon, 29 Jul 2024 23:02:36 +0530 Subject: [PATCH] Create affinity.yaml --- charts/microservice/examples/affinity.yaml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 charts/microservice/examples/affinity.yaml diff --git a/charts/microservice/examples/affinity.yaml b/charts/microservice/examples/affinity.yaml new file mode 100644 index 00000000..069cde85 --- /dev/null +++ b/charts/microservice/examples/affinity.yaml @@ -0,0 +1,34 @@ +global: + namespace: "default" + # replicacount: 5 + fullnameOverride: "webapp" + +deployment: + image: + name: nginx + tag: latest + pullPolicy: IfNotPresent + livenessProbe: + httpGet: + path: "/" + port: http + readinessProbe: + httpGet: + path: "/" + port: http + resources: + requests: + memory: 100Mi + cpu: 100m + limits: + memory: 500Mi + cpu: 500m + volumes: + enabled: true + configMaps: + - name: index + mountPath: /usr/share/nginx/html + data: + index.html: | + Hello! Opstree +