Kubernetes - nbspou/scripts GitHub Wiki
- https://kubernetes.io/docs/tasks/tools/install-kubectl/
- https://www.digitalocean.com/docs/kubernetes/how-to/connect-with-kubectl/
- https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/
- https://github.com/helm/charts/tree/master/stable/wordpress
- https://helm.sh/
On Windows, install the command line tools.
choco install kubernetes-cli
choco install kubernetes-helm
Test if it's working.
kubectl --kubeconfig="cluster1-kubeconfig-dupe.yaml" get nodes
Various commands.
kubectl --kubeconfig="batman-kubeconfig.yaml" get secrets
kubectl --kubeconfig="batman-kubeconfig.yaml" get pvc
kubectl --kubeconfig="batman-kubeconfig.yaml" get pods
kubectl --kubeconfig="batman-kubeconfig.yaml" get services
Secrets are passwords, PVC are Presistent Volume Claims, Pods are microservices.
kubectl --kubeconfig="batman-kubeconfig.yaml" create -f mysql-deployment.yaml
Use create -f
to create resources by file, or create secret
etc by command line.
set KUBECONFIG=kubeconfig.yaml