- when deploying to
eks
oraks
orgcp
create infrastructure first - fulfill
prerequisites
- run
nix-shell
with appropriate target
- run
run-shell-with-worker.sh
it is going to install
nix-remote-worker
- necessary to builddocker
withoutdaemonless
onlinux
machine
nix-shell \
--arg kubernetes '{target="<minikube|eks|aks|gcp>"; clean=true; save=true; update=true; patches=true;}' \
--arg docker '{upload=true;}'
clean
- whether to apply and wait forcrd
- when starting first time it has to betrue
save
- whether should save all generatedkubernetes
resources toresource
folderupdate
- whether should apply allkubernetes
resourcespathches
- whether should run patches on kubernetes resources - when more interaction with external services is required
- you can check defaults or create new one it is fully extensible and can be seen here
- follow
terraform guid
onlyminikube
provisioning isautomated
withnix
.
- running
minikube
-nix-shell --arg kubernetes '{target="minikube"; clean=true; save=true; update=true; patches=true;}' --arg docker '{upload=true;}'
minikube
will create cluster if not exists
eks
-nix-shell --arg kubernetes '{target="eks"; clean=true; save=true; update=true; patches=true;}' --arg docker '{upload=true;}'
- TODO
Provisioning takes couple of minutes so after running, you can go for a coffee - start watcher to know what happen kubectl get pods -Aw
.
tf-project aws/setup init
File with secrets, this is secret.json
is created after infra
deployment as we need to have kms
key. It implies that destroying key destroy secrets as well.
secret
-> XHookUUID request
- to check status you can run
kubectl get pods -Aw
- wait until everything will be running
minikube service list -p $PROJECT_NAME
- if you encounter any issues check docs