refactor: Update API deployment and service names to match component name change

This commit is contained in:
2024-08-13 21:20:11 +08:00
parent 1f0b71fab1
commit d9498c66c7
4 changed files with 81 additions and 25 deletions
+25 -6
View File
@@ -1,12 +1,31 @@
# test stack
```bash
minikube start
k create ns test
kubectl config set-context --current --namespace=test
k apply -f api-deployment.yaml -f client-deployment.yaml
k apply -f database-persistent-volume-claim.yaml
k apply -f api-cluster-ip-service.yaml
k apply -f client-cluster-ip-deployment.yaml
k apply -f postgres-cluster-ip-service.yaml
k apply -f ingress-service.yaml
# kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
helm upgrade --install ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace ingress-nginx --create-namespace
minikube addons enable ingress
k apply -f test
minikube ip
minikube tunnel
# Wait for ingress address
# kubectl get ingress
# NAME CLASS HOSTS ADDRESS PORTS AGE
# example-ingress nginx * <your_ip_here> 80 5m45s
# Note for Docker Desktop Users:
# To get ingress to work youll need to open a new terminal window and run minikube tunnel and in the following step use 127.0.0.1 in place of <ip_from_above>.
minikube delete --all --purge
```