update to node port

This commit is contained in:
Cedric Verstraeten
2024-08-09 09:14:18 +02:00
parent b90d74aab2
commit 0a6e124455
2 changed files with 10 additions and 2 deletions

View File

@@ -70,4 +70,10 @@ Once you applied this value, the other values like `MONGODB_USERNAME`, `MONGODB_
Create the config map in the `kerberos-vault` namespace.
kubectl create namespace kerberos-vault
kubectl apply -f ./mongodb/mongodb-config.yaml -n kerberos-vault
kubectl apply -f ./mongodb-config.yaml -n kerberos-vault
### Deployment
To install the Kerberos Vault web app inside your cluster, simply execute below `kubectl` command. This will create the deployment for us with the necessary configurations, and exposed it on internal/external IP address, thanks to our `LoadBalancer` MetalLB or cloud provider.
kubectl apply -f ./kerberos-vault/deployment.yaml -n kerberos-vault

View File

@@ -86,10 +86,12 @@ metadata:
labels:
app: vault
spec:
type: LoadBalancer
#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: