- Build the docker image from the latest code:
docker build -t rinkiyakedad/simple-go-server --platform=linux/amd64 .
- To test it run:
docker run rinkiyakedad/simple-go-server
- Push it:
docker push rinkiyakedad/simple-go-server
- Apply the manifests:
k apply -f k8s.yaml
- List the services:
kubectl get services
- Visit the "External IP" shown for the
simple-go-server
service
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
brew install argocd
argocd login LoadBalancer IP/localhost:8080
argocd app create simple-go-server --repo https://github.com/rinkiyakedad/simple-go-server.git --path k8s --dest-server https://kubernetes.default.svc --dest-namespace default
argocd app sync simple-go-server