This file contains hidden or 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
| helm install --name nginx-ingress stable/nginx-ingress --version 0.12.3 --namespace nginx-ingress --set rbac.create=true --set controller.service.loadBalancerIP="STATIC_IP" |
This file contains hidden or 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 po -a --all-namespaces -o json | \ | |
| jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | | |
| "kubectl delete po \(.metadata.name) -n \(.metadata.namespace)"' | xargs -n 1 bash -c |
This file contains hidden or 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: apps/v1beta2 | |
| kind: DaemonSet | |
| metadata: | |
| name: prepull-image | |
| spec: | |
| selector: | |
| matchLabels: | |
| name: prepull-image | |
| template: |
This file contains hidden or 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
| base64_encoded_service_account=$(base64 -w 0 keyfile.json) |
This file contains hidden or 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
| app.config.name=test app | |
| app.config.url= www.test |
This file contains hidden or 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
| https://container-solutions.com/using-google-container-registry-with-kubernetes/ |
This file contains hidden or 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
| rm ~/.docker/config.json | |
| gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://eu.gcr.io |
This file contains hidden or 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
| import os | |
| import json | |
| import requests | |
| SERVER_URL = "YOUR_SERVER_URL" | |
| CHANNEL_ID = "YOUR_CHANNEL_ID" | |
| FILE_PATH = './test.jpg' | |
| s = requests.Session() | |
| s.headers.update({"Authorization": "Bearer YOUR_PERSONAL_ACCESS_TOKEN"}) |
This file contains hidden or 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 pv | grep Released | awk '$1 {print$1}' | while read vol; do kubectl delete pv/${vol}; done |
This file contains hidden or 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 secret wildcard-tls --namespace=prod -o yaml | sed 's/namespace: prod/namespace: monitoring/g' | kubectl create -f - |
OlderNewer