Usefull kubernetes snippets

en
- 10 May, 2020

Test cluster using a service / ingress

    kubectl --namespace default create deployment echoserver --image k8s.gcr.io/echoserver:1.3
    kubectl --namespace default expose deployment echoserver --port=8080

    kubectl --namespace default create ingress echoserver\
    --annotation kubernetes.io/ingress.class=haproxy\
    --rule="echoserver.local/*=echoserver:8080"
kubectl --namespace prod create deployment echoserver --image k8s.gcr.io/echoserver:1.3
kubectl --namespace prod expose deployment echoserver --port=8080
kubectl --namespace prod create ingress echoserver\
--annotation kubernetes.io/ingress.class=haproxy\
--rule="echoserver.local/*=echoserver:8080"
Tags: sysadmin kubernetes snippets

Tag cloud

plain text accounting timeclock documentation parser sysadmin cryogen grammar keepassxc gnome authentication clojure tutorial pass oauth2 password management export hledger oauth2-proxy free software csv website static website kubernetes lexer open-source snippets dex gnome extension babashka k3s contribution time logging FreeIPA Raspberry PI LDAP deps.edn giving back OpenFaaS Antlr self-hosting serverless cryogen-web live-reload open source