Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Food for though: Assume local git clone to shorten URLs in shell examples #7

Open
luebken opened this issue May 15, 2017 · 2 comments
Assignees

Comments

@luebken
Copy link
Contributor

luebken commented May 15, 2017

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:

screen shot 2017-05-15 at 12 43 34

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.

@mhausenblas mhausenblas self-assigned this May 18, 2017
@mhausenblas
Copy link
Contributor

Thanks @luebken for this suggestion. I'll look into it.

@lexsys27
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants