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
1. ```kwokctl create cluster --name=kwok``` | |
2. ```kwokctl config view > ~/kwok-config.yaml``` | |
3. edit ```~/kwok-config.yaml``` | |
4. Add ```kubeApiserverCertSANs: ["host.docker.internal"]``` under options | |
5. ```kwokctl delete cluster --name=kwok``` | |
6. ```kwokctl create cluster --name=kwok --config ~/kwok-config.yaml``` | |
7. edit ```/etc/hosts``` | |
8. Add ```127.0.0.1 host.docker.internal``` at the bottom | |
9. Start ArgoCD in k8s and port forward argocd-server | |
10. ```argocd login localhost:<your argocd-port>``` |
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
{"newItems":[],"list":["glasses-Heart","glasses-Alien","toy-Yarn","hat-5","hat-7","hat-3","hat-6","toy-8","hat-4","toy-6","hat-8","glasses-3","toy-4","hat-1","toy-3","glasses-2","glasses-1","glasses-4","toy-5","toy-7","toy-2","toy-1","toy-9","hat-9","glasses-5","hat-2","toy-Pizza","hat-Baseball","glasses-CatEye","toy-Donut","hat-Fez","glasses-Scuba","toy-Flamingo","hat-Spinner","toy-Fishbowl","glasses-Blue","toy-Fishbones","toy-SoccerBall","toy-BonsaiTree","toy-FoamFinger","hat-Beanie","hat-Princess","hat-King","hat-Fedora","hat-Bow","toy-Wine","glasses-Kerry","glasses-ThreeD","glasses-Sunglasses","hat-PartyHat","toy-Coffee","toy-Martini","hat-Sweatband","hat-Chef","toy-Rocketship","toy-Synth","toy-MagicWand","glasses-OldMan","toy-IceCream","glasses-Raybans","toy-Mouse","toy-Campfire","toy-MiniGolf","hat-Unicorn","glasses-Aviators","toy-Cake","toy-Flowers","toy-Dough","toy-Rocket","toy-sushi","toy-flowers","toy-Sushi","toy-Popsicle","toy-HotDog","toy-BeachBall","hat-Sombero","hat-BeachBall","toy-Strawberry"," |
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
cat file.json| jq '.thing' | jq 'keys' | |
#all the keys under "thing" | |
{ | |
"thing": { | |
"prop1": "value", | |
"prop2": "value" | |
} |
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
get images used in a namespace: | |
kubectl get pods -n <NAMESPACE> -o jsonpath="{.items[*].spec.containers[*].image}" |
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
#run an alpine container in interactive mode to debug with k8s or docker. Helpful for finding network junk. | |
alias kbb="kubectl run -it --rm --restart=Never alpine --image=alpine sh" | |
alias dbb="docker run --name alpine --rm -i -t alpine sh" | |
#find the program highjacking that port you wanted to use | |
function port() {lsof -i tcp:$1} | |
# DOCKER | |
#get all the docker ps without all the k8s processes | |
alias dps="docker ps | grep -v k8s" |