From 99fe0ccbb892f13cab80feda8690849f4ef452e6 Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Sun, 18 Aug 2024 19:38:13 +0200 Subject: [PATCH] Update kerberos-vault-deployment.yaml --- kerberos-vault-deployment.yaml | 55 ++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/kerberos-vault-deployment.yaml b/kerberos-vault-deployment.yaml index 33a5137..e31e686 100644 --- a/kerberos-vault-deployment.yaml +++ b/kerberos-vault-deployment.yaml @@ -16,6 +16,41 @@ data: MONGODB_USERNAME: "root" MONGODB_PASSWORD: "yourpassword" --- +# You might use a LoadBalancer service instead of a NodePort service. +# If so uncomment the LoadBalancer service below and comment the NodePort service. +apiVersion: v1 +kind: Service +metadata: + name: vault-nodeport + labels: + app: vault +spec: + type: NodePort + ports: + - port: 80 + targetPort: 80 + nodePort: 30080 # You can specify a port in the range 30000-32767 or let Kubernetes assign one automatically + name: frontend + protocol: TCP + selector: + app: vault +# --- +# apiVersion: v1 +# kind: Service +# metadata: +# name: vault-lb +# labels: +# app: vault +# spec: +# type: LoadBalancer +# ports: +# - port: 80 +# targetPort: 80 +# name: frontend +# protocol: TCP +# selector: +# app: vault +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -95,22 +130,4 @@ spec: #volumes: #- name: rootcerts # configMap: - # name: rootcerts ---- -apiVersion: v1 -kind: Service -metadata: - name: vault-lb - labels: - app: vault -spec: - #type: LoadBalancer # You might want to use a loadbalancer if you are on a cloud provider (or using MetalLB). - type: NodePort - ports: - - port: 80 - targetPort: 80 - nodePort: 30080 # You can specify a port in the range 30000-32767 or let Kubernetes assign one automatically - name: frontend - protocol: TCP - selector: - app: vault \ No newline at end of file + # name: rootcerts \ No newline at end of file