Main Menu
- Home
- Kubernetes
- Containerization Stack (DevOps)
- Oracle Cloud Native Environment (OCNE)
- Linux
- Linux "FIND" Command related Articles
- Linux "YUM" Command related Articles
- Linux "PS" Command related Articles
- "AWK" Command related Articles
- Linux "RPM" Command related Articles
- "PING" Command related Articles
- "NTP" related Articles
- Linux Network related Articles and Commands
- Linux Security related Articles
- Linux Troubleshooting Articles
- Linux FILESYSTEM related Articles
- Linux INFINIBAND Network related Articles
- Linux "MOUNT" Command related Articles
- Linux Shell Script Articles
- "BIOS" related Linux Articles
- "NFS" related Articles
- "GREP" Commands related Articles
- Linux "CPU" & "Memory" related Articles
- "SED" Command related Articles
- "SYSTEMCTL" Commands related Articles
- Logical Volumes related Articles
- "TCPDUMPS" related Articles
- GitHub Repositories (tarbots)
- About tarbots
Search
PODMAN: Curl Command To List Container Images And Their Tags From Podman Private Registry Running On Remote Host
KUBERNETES: Kubectl Command To List All Pods And Nodes On Which They are Running
KUBERNETES: Operating System Commands To Validate Kubernetes Related OS Settings For Comparing and Troubleshooting Issues
- firewalld
- selinux
- rpm packages list
- iptables & iptable nat rules
- system level settings - sysctl -a output
- Operating system release and kernel versions
- List of all the services on the operating system
- All the repositories that are enabled and disabled
- Swap settings
- Loaded modules (modprobe settings)
- Sudo users
KUBERNETES: Kubectl Command To Do Rollout Restart of Flannel Pods
Kubectl Command To Do Rollout Restart of Flannel Pods
kubectl rollout restart ds kube-flannel-ds -n kube-system
Keywords:
flannel pod pods podnetwork network networks networking
KUBERNETES: How to Install Nginx Ingress Controller on Kubernetes Cluster Using Helm
KUBERNETES: Kubectl Command to Decode Grafana Admin User Password
-o jsonpath="{.data.admin-password}" | base64 --decode ; echo
KUBERNETES: Grafana Configuration .ini File Which Has Admin User Password Credentials
/etc/grafana/grafana.ini is the file which has grafana Admin User Password Credentials
You will see below block if user credentials are specific in Grafana /etc/grafana/grafana.ini file.
[security]
admin_user = admin
admin_password = admin
KUBERNETES How to Start / Run Temporary Pod On Specific Node In Kubernetes
You can start a pod temporarily on specific node for testing by using kubectl command as follows:
kubectl run <name> --image=<image> --overrides='{"apiVersion": "v1", "spec": {"nodeSelector": {"kubernetes.io/hostname": "<hostname>"}}}' --restart=Never
With above command a temporary pod with specified name and image will be started on the node specified. The pod will not start once you delete the pod since restart is specified as "Never".
For e.g. to start nginx pod using nginx image in Oracle container registry on worker1 node, your command will look as follows:
kubectl run nginx --image=container-registry.oracle.com/olcne/nginx:1.17.7 --overrides='{"apiVersion": "v1", "spec": {"nodeSelector": {"kubernetes.io/hostname": "worker1"}}}' --restart=Never
Keywords:
temporarily starting running pod pods test testing without deployment deployments yaml file files pull pulliing particular desired choice
KUBERNETES: How to Start / Run Temporary Pod For Testing In Kubernetes
You can start a pod temporarily for testing by using kubectl command as follows:
kubectl run <name> --image=<image> --restart=Never
With above command a temporay pod with specified name and image will be deployed. The pod will not start once you delete the pod since restart is specified as "Never"
For e.g. to start nginx pod using nginx image in Oracle container registry, your command will look as follows:
kubectl run nginx --image=container-registry.oracle.com/olcne/nginx:1.17.7 --restart=Never
Keywords:
temporarily starting running pod pods test testing without deployment deployments yaml file files pull pulliing
KUBERNETES: How To Install and Configure HAProxy As Load Balancer Kubernetes HA Cluster?
# dnf -y install haproxy
# systemctl status firewalld.service
If firewalld is running, add the port on which HAproxy will be listening to the firewalld to allow communication.
# firewall-cmd --permanent --add-port=6443/tcp
Reload the firewalld after the change.
# firewall-cmd --reload3)Backup the /etc/haproxy/haproxy.cfg original configuration file.
# cp -rp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.ORIG
# sestatus
#--------------------------------------------------------------------# Kubernetes Cluster Control Plane Nodes Load Balancing#--------------------------------------------------------------------defaultsmaxconn 20000mode tcpoption dontlognulltimeout http-request 10stimeout queue 1mtimeout connect 10stimeout client 86400stimeout server 86400stimeout tunnel 86400sfrontend k8s-apibind :::6443 v4v6mode tcpdefault_backend k8s-apibackend k8s-apioption httpchk GET /readyz HTTP/1.0option log-health-checkshttp-check expect status 200mode tcpbalance roundrobindefault-server verify none check-ssl inter 10s downinter 5s rise 2 fall 2 slowstart 60s maxconn 5000 maxqueue 5000 weight 100server node1 10.10.10.1:6443 checkserver node2 10.10.10.2:6443 check
# systemctl start haproxy.service# systemctl enable --now haproxy
KUBERNETES: How to Change ETCD Leader From One Control Node To Other Using ETCDCTL Commands?
In below command for —endpoints give the https client address endpoint of each control node, Replace the leader ID in this case d5907367f2bc466 with the leader ID of the Control Node you wish to change the Leader to.