- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| kind: PersistentVolumeClaim | |
| apiVersion: v1 | |
| metadata: | |
| name: jenkins-claim | |
| annotations: | |
| volume.beta.kubernetes.io/storage-class: openebs-standard | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: |
| type MockData []struct { | |
| TeamID string `json:"team_id"` | |
| ChannelID string `json:"channel_id"` | |
| APIKey string `json:"api_key"` | |
| ClsuterList []string `json:"clsuter_list"` | |
| } |
| { | |
| "team_id" : "T8HP5N491", | |
| "channel_id" : "C8JMAKKPG", | |
| "api_key": "YmF0Y2F2ZQ==", | |
| "clsuter_list": [ | |
| "botcave-clsuter-one", "botcave-cluster-two" ] | |
| } |
| [ | |
| { | |
| "team_id" : "T8HP5N491", | |
| "channel_id" : "C8JMAKKPG", | |
| "api_key": "YmF0Y2F2ZQ==", | |
| "clsuter_list": [ | |
| "botcave-clsuter-one", "botcave-cluster-two" ] | |
| }, | |
| { | |
| "team_id" : "T8HP5N491", |
ubuntu@kubemaster-01:~$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
default maya-apiserver-3416621614-qm09x 1/1 Running 0 1h
default node-exporter-934fl 1/1 Running 0 9h
default node-exporter-k1jth 1/1 Running 1 9h
default node-exporter-sr3bh 1/1 Running 1 9h
default openebs-provisioner-4230626287-gt29w 1/1 Running 3 1h
default percona 0/1 ContainerCreating 0 1h
default prometheus-deployment-2597070772-7sh3r 1/1 Running
ubuntu@kubemaster-01:~$ kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE
maya-apiserver-3416621614-qm09x 1/1 Running 0 1h 10.47.0.1 kubeminion-02
node-exporter-934fl 1/1 Running 0 8h 172.28.128.3 kubemaster-01
node-exporter-k1jth 1/1 Running 1 8h 172.28.128.5 kubeminion-02
node-exporter-sr3bh 1/1 Running 1 8h 172.28.128.4 kubeminion-01
openebs-provisioner-4230626287-gt29w 1/1 Running 3 1h 10.47.0.2 kubeminion-02
percona 0/1 ContainerCreating 0 1h
ubuntu@kubemaster-01:~$ kubectl get pods
NAME READY STATUS RESTARTS AGE
maya-apiserver-3416621614-qm09x 1/1 Running 0 1h
node-exporter-934fl 1/1 Running 0 8h
node-exporter-k1jth 1/1 Running 1 8h
node-exporter-sr3bh 1/1 Running 1 8h
openebs-provisioner-4230626287-gt29w 1/1 Running 3 1h
percona 0/1 ContainerCreating 0 1h
prometheus-deployment-2597070772-7sh3r 1/1 Running 1 8h
ubuntu@kubemaster-01:~$ kubectl get pods
NAME READY STATUS RESTARTS AGE
maya-apiserver-3416621614-qm09x 1/1 Running 0 1h
node-exporter-934fl 1/1 Running 0 8h
node-exporter-k1jth 1/1 Running 1 8h
node-exporter-sr3bh 1/1 Running 1 8h
openebs-provisioner-4230626287-gt29w 1/1 Running 3 1h
percona 0/1 ContainerCreating 0 1h
prometheus-deployment-2597070772-7sh3r 1/1 Running 1 8h
ubuntu@kubemaster-01:~$ kubectl get pods NAME READY STATUS RESTARTS AGE maya-apiserver-3416621614-qm09x 1/1 Running 0 1h node-exporter-934fl 1/1 Running 0 8h node-exporter-k1jth 1/1 Running 1 8h node-exporter-sr3bh 1/1 Running 1 8h openebs-provisioner-4230626287-gt29w 1/1 Running 3 1h percona 0/1 ContainerCreating 0 1h prometheus-deployment-2597070772-7sh3r 1/1 Running 1 8h pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-ctrl-2617481313-c6m23 1/1 Running 0 1m