Kubectl notes (WIP)
curl -L https://github.com/kubernetes/kompose/releases/download/v1.17.0/kompose-linux-amd64 -o kompose
chmod +x kompose
kompose convert --volumes hostPath
kubectl create namespace media
kubectl -n media create -f ~/media/k8/
kubectl get deployment,svc,pods,pvc
kubectl get pods -n media
kubectl edit deployment emby -n media
kubectl expose service emby --port=8096 --target-port=80 --name=emby-lb --type=LoadBalancer --external-ip=10.10.11.20 -n media
kubectl edit services couchpotato-service -n media
spec:
type: LoadBalancer
externalIPs:
- 192.168.0.10
kubectl delete daemonsets,replicasets,services,deployments,pods,rc --all
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands
https://www.ibm.com/support/knowledgecenter/en/SSBS6K_2.1.0/manage_cluster/create_hostpath.html