Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubernetes get statefulset

# Get pods in default namespace
kubectl get statefulsets

#Get Pods in my-namespace
kubectl get statefulsets -n my-namespace

#Get Pods in all namespaces
kubectl get statefulsets --all-namespaces
Comment

kubernetes stateful set

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80
Comment

PREVIOUS NEXT
Code Example
Shell :: kubeadm get discovery-token-ca-cert-hash command openssl 
Shell :: git branch from commit 
Shell :: sum bash 
Shell :: linux command line search file by size 
Shell :: linux list files in txt 
Shell :: jupyter digits 
Shell :: supertest npm 
Shell :: gnutls_handshake() failed: Error in the pull function 
Shell :: rustup uninstall nightly 
Shell :: get changes from differente branch git 
Shell :: batch write file 
Shell :: how to push code to bitbucket 
Shell :: how to log into a remote linux server 
Shell :: unity download android sdk 
Shell :: a new powershell stable release is available 
Shell :: unzip in folder 
Shell :: get bluetooth devices powershell 
Shell :: create cron job from command line 
Shell :: wsl start distro 
Shell :: python convert excel to html table 
Shell :: bash add comma to end of line 
Shell :: bashrc sleep command 
Shell :: symbolic link wsl mnt 
Shell :: scrapy spider shell from spider 
Shell :: git ignore file is not working 
Shell :: sudo apt install xfce4 xfce4-goodies -y 
Shell :: git config command 
Shell :: bash create symlink to symlinks 
Shell :: setup git on windows 
Shell :: react navigation stack 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =