kubectl apply -f <filename>
kubectl run <podname> --image=<imagename> --port=<port to expose> --replicas=<count> --labels="app=hazelcast,env=prod" --expose=false: If tru
k describe po #pod k describe ds #daemonset
add nodeName like below
apiVersion: 1
kind: Pod
metadata:
name: nginx
spec:
containers:
- image: nginx
name: nginx
nodeName: node01k get nodes -o=wide === kubelet config go to /etc/systemd/system/kubelet.service.d/ check the config something like 10-kubeadm.conf check kubelet-config typically /var/lib/kubelet/config.yaml this should have "staticPodPath"
first "ps -eaf | grep kubelet" then check finally look for staticPodPath in the config
-
it is schedul*e*r not schedul*a*r
-
when creating new scheduler
-
first add scheduler-name
-
then leader-election=false under spec/command
-
change **secure-port=0" to disable https
-
finally change port to an unused port using "netstat -natulp tcp/udp | grep <portno>" and check source port numbers
-
ensure the liveness probe port number is also updated
-
schedule it on the master
-
check kubectl get events of the pod once it is scheduled to check scheduler used.
-
check kubectl logs <scheduler-name> to ensure it isnt waitinf leader election if there are issues with the scheduler
-