Update kerberos-vault-deployment.yaml

This commit is contained in:
Cedric Verstraeten
2024-08-18 19:38:13 +02:00
parent 619162cbd9
commit 99fe0ccbb8

View File

@@ -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
# name: rootcerts