Created
October 22, 2021 06:48
-
-
Save alexandervantrijffel/b5befcb4edb25ff15d01664ce7a36031 to your computer and use it in GitHub Desktop.
k3d Create Cluster
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
#!/bin/sh | |
CLUSTER_NAME=dev | |
k3d registry create "$CLUSTER_NAME-registry".localhost --port 55515 | |
k3d cluster create $CLUSTER_NAME --registry-use "$CLUSTER_NAME-registry.localhost:55515" --port 8080:80@loadbalancer --port 8443:443@loadbalancer | |
k3d kubeconfig merge $CLUSTER_NAME --kubeconfig-switch-context | |
echo port of registry: | |
docker ps -f name="$CLUSTER_NAME"-registry | |
k apply -f pixie-demos/simple-gotracing/app/k8s_manifest.yaml | |
echo execute px-demo-gotracing with: | |
echo curl http://localhost:9090/e | |
k port-forward service/gotracing-svc -n px-demo-gotracing 9090 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment