This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~# docker ps|sed 1d|xargs -I@ sh -c 'set @;echo = $2 =; nsenter -n -t $(docker inspect -f "{{.State.Pid}}" $1) netstat -anp' | |
= mirantis/kubeadm-dind-cluster:v1.7 = | |
Active Internet connections (servers and established) | |
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name | |
tcp 0 0 127.0.0.11:34377 0.0.0.0:* LISTEN 3307/dockerd | |
udp 0 0 10.192.0.4:53 0.0.0.0:* 25869/socat | |
udp 0 0 127.0.0.11:55597 0.0.0.0:* 3307/dockerd | |
Active UNIX domain sockets (servers and established) | |
Proto RefCnt Flags Type State I-Node PID/Program name Path | |
unix 2 [ ACC ] STREAM LISTENING 359006 25346/dind_init /var/run/docker.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker ps|sed '1d;s,>,_,'|xargs -I@ sh -c 'set @;echo == $2;nsenter -n -t $(docker inspect -f "{{.State.Pid}}" $1) netstat -an' | |
== gcr.io/google_containers/k8s-dns-kube-dns-amd64@sha256:40790881bbe9ef4ae4ff7fe8b892498eecb7fe6dcc22661402f271e03f7de344 | |
Active Internet connections (servers and established) | |
Proto Recv-Q Send-Q Local Address Foreign Address State | |
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN | |
tcp 0 0 172.17.0.6:52640 10.0.0.1:443 ESTABLISHED | |
tcp 0 0 :::10053 :::* LISTEN | |
tcp 0 0 :::10054 :::* LISTEN | |
tcp 0 0 :::10055 :::* LISTEN | |
tcp 0 0 :::8081 :::* LISTEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kubectl get pod -oname|xargs -I@ -P0 sh -c 'kubectl logs -f @|sed "s|^|@: |"' | |
pods/nginx-1423793266-msmhm: 10.220.1.1 - - [11/Aug/2017:00:22:50 +0000] "GET / HTTP/1.1" 200 612 "-" "Wget" "-" | |
pods/nginx-1423793266-msmhm: 10.220.1.1 - - [11/Aug/2017:00:27:01 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-" | |
pods/nginx-1423793266-msmhm: 10.220.1.1 - - [11/Aug/2017:00:27:03 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-" | |
pods/nginx-1423793266-msmhm: 10.220.1.1 - - [11/Aug/2017:00:27:04 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-" | |
pods/nginx-1423793266-msmhm: 10.220.1.1 - - [11/Aug/2017:02:04:21 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-" | |
pods/nginx-1423793266-msmhm: 10.220.1.1 - - [11/Aug/2017:11:35:29 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-" | |
pods/nginx-1423793266-msmhm: 10.220.1.1 - - [11/Aug/2017:11:35:58 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-" | |
pods/nginx-1423793266-msmhm: 10.220.1.1 - - [11/Aug/2017:11:36:00 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
## Setup http://labs.play-with-k8s.com/ env ala' jjo | |
# YEAH I TRUST RUNNING STUFF DIRECTLY AS ROOT way -> | |
# | |
# bash -x <( curl -L bit.do/jjo-pwk-sh ) | |
# | |
# https://gist.github.com/jjo/78f60702fbfa1cbec7dd865f67a3728a/edit | |
# http://bit.do/admin/edit/jjo-pwk-sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmd/kubeseal/main.go b/cmd/kubeseal/main.go | |
index 82ab16e..deb96ef 100644 | |
--- a/cmd/kubeseal/main.go | |
+++ b/cmd/kubeseal/main.go | |
@@ -26,6 +26,9 @@ import ( | |
// Register Auth providers | |
_ "k8s.io/client-go/plugin/pkg/client/auth" | |
+ | |
+ // GCP auth plugin needs to be explicitly registered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRole | |
metadata: | |
name: kubeless-controller-deployer | |
rules: | |
- apiGroups: | |
- '*' | |
resources: | |
- services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff -u kubeless-rbac-v0.2.3.yaml kubeless-rbac-noPVC-v0.2.3.yaml | |
--- kubeless-rbac-v0.2.3.yaml 2017-10-13 20:28:52.490034876 +0000 | |
+++ kubeless-rbac-noPVC-v0.2.3.yaml 2017-10-13 20:46:15.019205067 +0000 | |
@@ -77,15 +77,8 @@ | |
volumeMounts: | |
- mountPath: /bitnami/kafka/data | |
name: datadir | |
- volumeClaimTemplates: | |
- - metadata: | |
- name: datadir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kubectl get pod --all-namespaces | |
NAMESPACE NAME READY STATUS RESTARTS AGE | |
kube-system default-http-backend-szzvk 1/1 Running 1 12h | |
kube-system kube-addon-manager-minikube 1/1 Running 1 1d | |
kube-system kube-dns-6fc954457d-qn2qw 3/3 Running 3 1d | |
kube-system kubernetes-dashboard-8cg6b 1/1 Running 1 1d | |
kube-system nginx-ingress-controller-7brv4 1/1 Running 1 12h | |
$ ./kubeapps up | |
INFO[0000] Updating namespaces kubeapps | |
INFO[0000] Creating non-existent namespaces kubeapps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Boring | |
for i in {0..9}; do echo $i ;done | |
# Doesn't scale | |
for i in {0..9}; do /usr/bin/time curl -s -o/dev/null http://phabricator.bitnami.com:8080/; done | |
# Better | |
printf "%d\n" {0..9} | |
# Look'ma no for-loop ! \o/ | |
printf "%d\n" {0..9}|xargs -I@ time curl -s -o/dev/null http://bitnami.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: kube-router-cfg | |
namespace: kube-system | |
labels: | |
tier: node | |
k8s-app: kube-router | |
data: |