KubeZero/Quickstart.md

58 lines
1.8 KiB
Markdown
Raw Normal View History

2020-06-03 14:45:01 +00:00
# Quickstart
---
# CloudBender
## Prepare Config
- check config/kube/kube-control-plane.yaml
- check config/kube/kube-workers.yaml
2020-07-07 17:42:24 +00:00
## Deploy Cluster
- cloudbender sync config/kube --multi
The latest versions now support waiting for the control plane to bootstrap allowing deployments in one step !
2020-06-03 14:45:01 +00:00
## Get kubectl config
2020-07-07 17:42:24 +00:00
- get admin.conf from S3 and store in your local `~/.kube` folder
S3 URL will also be in the Slack message after successful bootstrap !
2020-06-03 14:45:01 +00:00
2020-07-07 17:42:24 +00:00
## Verify nodes
- Verify all nodes have the expected version and are *Ready*, eg via: `kubectl get nodes`
2020-06-05 15:38:46 +00:00
2020-06-03 14:45:01 +00:00
---
2020-07-07 17:42:24 +00:00
# KubeZero
2020-07-07 17:51:27 +00:00
All configs and scriptss are normally under:
`artifacts/<ENV>/<REGION>/kubezero`
2020-06-03 14:45:01 +00:00
## Prepare Config
2020-07-07 17:51:27 +00:00
check values.yaml for your cluster
2020-06-03 14:45:01 +00:00
2020-07-07 17:42:24 +00:00
## Get CloudBender kubezero config
Cloudbender creates a kubezero config file, which incl. all outputs from the Cloudformation stacks in `outputs/kube/kubezero.yaml`.
2020-07-07 17:51:27 +00:00
- copy kubezero.yaml *next* to the values.yaml named as `cloudbender.yaml`.
2020-06-05 15:38:46 +00:00
2020-06-03 14:45:01 +00:00
## Deploy KubeZero Helm chart
`./deploy.sh`
2020-08-26 10:41:28 +00:00
The deploy script will handle the initial bootstrap process as well as the roll out of advanced components like Prometheus, Istio and ElasticSearch/Kibana in various phases.
It will take about 10 to 15 minutes for ArgoCD to roll out all the services...
# Own apps
- Add your own application to ArgoCD via the cli
# Troubleshooting
2020-06-03 14:45:01 +00:00
## Verify ArgoCD
2020-08-26 10:41:28 +00:00
To reach the Argo API port forward from localhost via:
2020-06-05 15:38:46 +00:00
`kubectl port-forward svc/kubezero-argocd-server -n argocd 8080:443`
2020-06-03 14:45:01 +00:00
2020-06-05 15:38:46 +00:00
Next download the argo-cd cli, details for different OS see https://argoproj.github.io/argo-cd/cli_installation/
2020-06-03 14:45:01 +00:00
Finally login into argo-cd via `argocd login localhost:8080` using the *admin* user and the password set in values.yaml earlier.
2020-06-05 15:38:46 +00:00
List all Argo applications via: `argocd app list`.
2020-06-05 16:58:18 +00:00