kbe
kbe copied to clipboard
Food for though: Assume local git clone to shorten URLs in shell examples
The current examples grep the k8s resources straight from Github (https://raw.githubusercontent.com/mhausenblas/kbe/master/ ...). This makes it convenient since no other setup is required. At the same time it makes hard to understand which yaml is used. Which made me always scroll to the right.
Here is a simple example that assumes a local copy:
For me easier to read. At the same time I want the yamls open in my editor anyway to understand / check whats I am going to start next.
Thanks @luebken for this suggestion. I'll look into it.
Another idea is to include yaml
files into text like it is done in "Kubernetes the hard way" course. This approach allows me to review the configuration before running the commands.
cat > pod.yaml <<EOF
apiVersion: v1
kind: Pod
metadata:
name: twocontainers
spec:
containers:
- name: sise
image: mhausenblas/simpleservice:0.5.0
ports:
- containerPort: 9876
- name: shell
image: centos:7
command:
- "bin/bash"
- "-c"
- "sleep 10000"
EOF
And thank you for the course, @mhausenblas ! I have just passed it and it is awesome intro to k8s.