Skip to content

Instantly share code, notes, and snippets.

View satyamz's full-sized avatar
👨‍💻

Satyam Zode satyamz

👨‍💻
View GitHub Profile
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: jenkins-claim
annotations:
volume.beta.kubernetes.io/storage-class: openebs-standard
spec:
accessModes:
- ReadWriteOnce
resources:
@satyamz
satyamz / go-struct.go
Created January 5, 2018 03:41
Go struct for the json schema
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" ]
}
@satyamz
satyamz / json-schema.json
Last active January 5, 2018 03:03
JSON schema
[
{
"team_id" : "T8HP5N491",
"channel_id" : "C8JMAKKPG",
"api_key": "YmF0Y2F2ZQ==",
"clsuter_list": [
"botcave-clsuter-one", "botcave-cluster-two" ]
},
{
"team_id" : "T8HP5N491",

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@satyamz
satyamz / weave-pod-logs.md
Created October 10, 2017 15:28
Weave net logs
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  
@satyamz
satyamz / provisioner-logs.md
Created October 10, 2017 15:16
Logs for `openebs-provisioner` in for percona setup
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  
@satyamz
satyamz / pv-replica-logs.md
Created October 10, 2017 15:04
Log & Description of PV in `ContainerCreating` status
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