Term
|
Definition
|
|
Term
To assign affinity for deploy |
|
Definition
- spec - template - spec affinity: |
|
|
Term
To assign affinity for pod |
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
- use yaml in manifest - change all "port" - change metadata->name: - change metadata->labels->component: - change leader-elect to false - add --secure-port=0 (if needed) - add --scheduler-name=my-scheduler |
|
|
Term
|
Definition
- args take precedence over command - both command and args in quotes when using "command:" - only args in quotes when using "args" - all in quotes when using [] |
|
|
Term
|
Definition
- pod command = ENTRYPOINT - pod args = CMD - pod command overrides CMD & ENTRYPOINT |
|
|
Term
To apply ConfigMap or Secrets to pod |
|
Definition
- can be done via envFrom - can be done via volumes |
|
|
Term
|
Definition
- ETCDCTL_API=3 - snapshot save - OR get cluster.name - --cacert=etcd-ca.pem - --cert=etcd-server.crt - --key=etcd-server.key |
|
|
Term
Dynamic storage classes have |
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
search for "cloud.weave.works" |
|
|
Term
|
Definition
search for ipalloc in any weave pod |
|
|
Term
|
Definition
search for cluster-ip-range in kube-apiserver yaml file |
|
|
Term
|
Definition
see logs for any kube-proxy pod |
|
|
Term
|
Definition
kubectl get ingress -all-namespaces |
|
|
Term
|
Definition
- filename under ConfigMap "DATA" field is used in kube-proxy DS yaml file for --config=dir/filename |
|
|
Term
|
Definition
- kubectl -n kube-system get ep kube-dns - Ensure kube-dns svc selector matches core-dns label |
|
|
Term
kube-controller-manage & kube-scheduler |
|
Definition
|
|
Term
|
Definition
- docker ps -a | grep blah - docker logs cont-id |
|
|
Term
To use (view) a different kubectl config |
|
Definition
kubectl config (view) --kubeconfig= (cmds) |
|
|
Term
|
Definition
- spec->imagePullSecrets->dash name |
|
|
Term
apply secrets to env vars |
|
Definition
- spec->containers->envFrom->secretRef->name |
|
|
Term
|
Definition
XX-XX-XX-XX.default.pod.cluster.local |
|
|
Term
|
Definition
- create busybox - exec -- nc -z -v -w 2 svc_name port |
|
|
Term
|
Definition
|
|
Term
|
Definition
kubectl run busybox --image=busybox -- /bin/sh -c "sleep 3600" |
|
|
Term
|
Definition
kubectl get pod --v=<0-9> |
|
|
Term
|
Definition
--rotate-certifcates --rotate-server-certificates |
|
|
Term
Pods that don't need API server |
|
Definition
|
|
Term
|
Definition
- ClusterIP within cluster - NodePort outside cluster |
|
|
Term
|
Definition
pod -> pvc -> pv -> storageClass |
|
|
Term
|
Definition
- RB can reference CR to limit by namespace |
|
|
Term
|
Definition
|
|
Term
|
Definition
- RUN ON ETCD SERVER! - sudo stop etcd service - sudo rm /var/lib/etcd (old db) - Restore: - ETCDCTL_API=3 - snapshot restore --initial-cluster etcd-restore=https://etcd1:2380 --initial-advertise-peer-urls https://etcd1:2380 --data-dir /var/lib/etcd --name etcd-restore - sudo chown -R etcd:etcd /var/lib/etcd - sudo restart etcd service - TEST with get cluster.name |
|
|