Editing StatefulSets

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
 
* https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
 
* https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
  
* <code>[[kubectl get statefulsets]]</code>
+
 
* <code>[[kubectl describe statefulsets]]</code>
+
[[kubectl get statefulsets]]
 +
[[kubectl describe statefulsets]]
  
 
  kubectl get statefulsets -n your_namespace
 
  kubectl get statefulsets -n your_namespace
Line 15: Line 16:
  
 
  apiVersion: v1
 
  apiVersion: v1
  [[kind: Service]]
+
  kind: Service
 
  metadata:
 
  metadata:
 
   name: nginx
 
   name: nginx
Line 29: Line 30:
 
  ---
 
  ---
 
  apiVersion: apps/v1
 
  apiVersion: apps/v1
  [[kind: StatefulSet]]
+
  kind: StatefulSet
 
  metadata:
 
  metadata:
 
   name: web
 
   name: web
Line 44: Line 45:
 
         app: nginx # has to match .spec.selector.matchLabels
 
         app: nginx # has to match .spec.selector.matchLabels
 
     spec:
 
     spec:
       [[terminationGracePeriodSeconds]]: 10
+
       terminationGracePeriodSeconds: 10
 
       containers:
 
       containers:
 
       - name: nginx
 
       - name: nginx
Line 51: Line 52:
 
         - containerPort: 80
 
         - containerPort: 80
 
           name: web
 
           name: web
         [[volumeMounts:]]
+
         volumeMounts:
 
         - name: www
 
         - name: www
           [[mountPath:]] /usr/share/nginx/html
+
           mountPath: /usr/share/nginx/html
 
   [[volumeClaimTemplates:]]
 
   [[volumeClaimTemplates:]]
 
   - metadata:
 
   - metadata:
Line 67: Line 68:
 
* [[Peloton]]
 
* [[Peloton]]
 
* <code>[[kubectl rollout]]</code>
 
* <code>[[kubectl rollout]]</code>
* [[Elastic Cloud on Kubernetes (ECK)]] (May 2019)
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: