From 6bb64c5601f6934b9796dbb68916689d5349c068 Mon Sep 17 00:00:00 2001 From: Sangmin Kim Date: Tue, 2 Apr 2024 10:22:38 +0900 Subject: [PATCH] modified: akashop/ingress.yml --- akashop/deployment.yml | 14 +++++++------- akashop/ingress.yml | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/akashop/deployment.yml b/akashop/deployment.yml index 7e9fdae..716ceb3 100644 --- a/akashop/deployment.yml +++ b/akashop/deployment.yml @@ -4,7 +4,7 @@ metadata: name: wp namespace: akashop spec: - replicas: 1 + replicas: 3 selector: matchLabels: app: wp @@ -41,12 +41,12 @@ spec: # secretKeyRef: # name: my-secret # Name of the secret containing the variable # key: VAR2_KEY - # livenessProbe: - # httpGet: - # path: / - # port: 80 - # initialDelaySeconds: 5 - # periodSeconds: 10 + livenessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 5 + periodSeconds: 10 volumeMounts: - name: wp-data mountPath: /var/www/html diff --git a/akashop/ingress.yml b/akashop/ingress.yml index 9d61447..7dc3334 100644 --- a/akashop/ingress.yml +++ b/akashop/ingress.yml @@ -7,6 +7,7 @@ metadata: traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.tls: "true" traefik.ingress.kubernetes.io/router.tls.certresolver: le + traefik.ingress.kubernetes.io/router.sticky.cookie: "sticky" spec: rules: - host: whoami.172.233.168.9.nip.io