Feel free to open a issue to let me know if something wrong or outdated.
And sure, you can copy&paste to anywhere. But please add the reference just like I did.
This project is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Execute
gist=https://raw.githubusercontent.com/RammusXu/toolkit/master/gist/install/github-action-runner.sh
curl -sL $gist | bash -
Download
gist=https://raw.githubusercontent.com/RammusXu/toolkit/master/gist/install/github-action-runner.sh
curl -sLO $gist
See what will generate
kustomize build github.com/RammusXu/toolkit/k8s/echoserver
curl https://raw.githubusercontent.com/RammusXu/toolkit/ba463bf8a11929c8018ad76de166ef5441036d0f/k8s/echoserver/deployment.yaml
curl https://raw.githubusercontent.com/RammusXu/toolkit/master/k8s/echoserver/deployment.yaml
Apply
kustomize build github.com/RammusXu/toolkit/k8s/echoserver | kubectl apply -f -
Clean
kustomize build github.com/RammusXu/toolkit/k8s/echoserver | kubectl delete -f -
Demo
❯ curl https://raw.githubusercontent.com/RammusXu/toolkit/ba463bf8a11929c8018ad76de166ef5441036d0f/k8s/echoserver/deployment.yaml | kubectl apply -f -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5374 100 5374 0 0 12734 0 --:--:-- --:--:-- --:--:-- 12734
deployment.apps/echoserver created
service/echoserver created
configmap/nginx-config created
❯ curl https://raw.githubusercontent.com/RammusXu/toolkit/ba463bf8a11929c8018ad76de166ef5441036d0f/k8s/echoserver/deployment.yaml | kubectl delete -f -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5374 100 5374 0 0 12556 0 --:--:-- --:--:-- --:--:-- 12526
deployment.apps "echoserver" deleted
service "echoserver" deleted
configmap "nginx-config" deleted
docker run -d --name toolkit -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
or
make start