Horje
kubectl exec bash Code Example
kubectl exec
kubectl exec -it <pod-name> -n <namespace> -- <command>

example:
--------
kubectl exec -it tag-mgmt -n my-namespace -- /bin/sh
kubectl exec -it timescaledb -n data-store -- psql

timescaledb -> is pod name 
data-store -> is namespace
psql -> is command that we can run for postgres
kubectl exec bash
kubectl exec --stdin --tty shell-demo -- /bin/bash
kubernetes /bin/bash
sudo kubectl -n <namespace> --context=<context-with-access> exec <pod-name> -it /bin/bash

ex:
sudo kubectl -n default --context=staging-devops exec microservice1-jd830k-880 -it /bin/bash
kubectl exec ls -lah
kubectl exec <pod_name> -- ls -la /




Shell

Related
git merge by ssh key Code Example git merge by ssh key Code Example
add local project to bitbucket Code Example add local project to bitbucket Code Example
connect to pod kubectl Code Example connect to pod kubectl Code Example
magento shell reindex Code Example magento shell reindex Code Example
redis-cli port host Code Example redis-cli port host Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10