From a609b06d3063ad46a3ad7be27004acd1957b7d1b Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 22 Jul 2024 01:56:01 +1000 Subject: [PATCH 1/2] add ingress for couchdb --- .../couchdb/env/k3s-cluster/ingress.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 infrastructures/couchdb/env/k3s-cluster/ingress.yaml diff --git a/infrastructures/couchdb/env/k3s-cluster/ingress.yaml b/infrastructures/couchdb/env/k3s-cluster/ingress.yaml new file mode 100644 index 0000000..5ae07b8 --- /dev/null +++ b/infrastructures/couchdb/env/k3s-cluster/ingress.yaml @@ -0,0 +1,21 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: couchdb-ingress + namespace: couchdb + annotations: + nginx.ingress.kubernetes.io/ssl-redirect: "false" + nginx.ingress.kubernetes.io/use-regex: "true" +spec: + ingressClassName: nginx + rules: + - host: "couchdb.cluster.edward.sydney" + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: couchdb + port: + number: 7777 \ No newline at end of file From 5448407d93687f2818e9499c2c019c3f7e1ac95b Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 22 Jul 2024 01:56:37 +1000 Subject: [PATCH 2/2] add ingress for couchdb --- infrastructures/couchdb/env/k3s-cluster/kustomization.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructures/couchdb/env/k3s-cluster/kustomization.yaml b/infrastructures/couchdb/env/k3s-cluster/kustomization.yaml index d1c9249..68b2245 100644 --- a/infrastructures/couchdb/env/k3s-cluster/kustomization.yaml +++ b/infrastructures/couchdb/env/k3s-cluster/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./service.yaml - - ./deployment.yaml \ No newline at end of file + - ./deployment.yaml + - ./ingress.yaml \ No newline at end of file