Config repo for gomux1 app
NOTE: This is a development configuration for the gomux1
app and assumes Argo CD installed on your local machine either via Docker Desktop, minikube, microk8s, or some other local K8s package.
The Helm chart for gomux1
app is under the helm/
subdir. Apply the deployment to your K8s cluster by:
helm template helm/ --name-template <RELEASE-NAME> | kubectl apply -f -
Example:
helm template helm/ --name-template dev | kubectl apply -f -
Once done, you should see the gomux1
Deployment & Service live in your K8s cluster:
$ kubectl get deployment -n gomux1-dev
NAME READY UP-TO-DATE AVAILABLE AGE
gomux1 1/1 1 1 5m16s
$ kubectl get service -n gomux1-dev
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
gomux1 LoadBalancer 10.97.33.69 localhost 80:31571/TCP 5m24s
To override any value in the values.yaml
file, simply use the --set
option on the helm
command.
Example: To override the service.port
(K8s Service EXTERNAL-IP)
helm template helm/ --name-template dev --set service.port=8080 | kubectl apply -f -
Please refer to the app's docs on how to access the app's endpoints: https://github.com/rakhbari/gomux1#endpoints
Go to https://argo-cd.readthedocs.io/en/stable/getting_started/ and follow those instructions to install Argo CD.
After installing Argo CD in your K8s cluster, make the following 2 changes:
Change the UI Service type to LoadBalancer
:
$ kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
It's best to change its argocd-server
UI port to 9080
:
$ kubectl patch svc argocd-server -n argocd --type merge -p '{"spec": {"ports": [{"name":"http","port":9080,"targetPort":8080}]}}'
Once you've done that, you can access the Argo CD UI at: https://localhost:9080/
Issue this command to get its admin
user password:
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo