NOTE: Main example for skaffold/kustomize is ticktock.
go test ./...
The following only works with go 1.13 onward.
mkdir bin
go build -o bin ./...
docker build --tag siuyin/junk --file helloworld.dockerfile .
docker build -t siuyin/junk -f helloworld.dockerfile .
docker build -t siuyin/junk -f goodbyeworld.dockerfile .
export KUBECONFIG=/path/to/kube/config
skaffold run # deploys dev release
skaffold run -p prod # deploys prod release
This currently deploys helloweb with opencensus monitoring.
export KUBECONFIG=/path/to/kube/config
skaffold run -f hello-nats-stream.skaffold.yaml
skaffold run -f hello-nats-stream.skaffold.yaml -p prod
export KUBECONFIG=/path/to/kube/config
skaffold run -f ticktock.skaffold.yaml # deploys base kustomization
skaffold run -f ticktock.skaffold.yaml -p prod # deploys overlay/prod kustomization
skaffold run -f ticktock.skaffold.yaml -p test # deploys overlay/test kustomization
keycloak.kustomize holds kustomization scripts for my attempt at a production ready keycloak installation.
To install / delete:
export KUBECONFIG=/path/to/kube/config
kustomize build keycloak.kustomize/overlays/prod | kubectl apply -f -
kustomize build keycloak.kustomize/overlays/prod | kubectl delete -f -
Deploy keycloak server as shown above. Get the service address:
export KUBECONFIG=/path/to/kube/config
kubectl get svc -l sys=keycloak
skaffold run -f secureweb.skaffold.yaml -p dev