Home kubectl works in online tutorial cluster but not in my canonical kubernetes with lxd/ubuntu
Reply: 0

kubectl works in online tutorial cluster but not in my canonical kubernetes with lxd/ubuntu

brianUK007
1#
brianUK007 Published in 2017-12-06 16:51:12Z

I try to understand why this command does not work in my canonical kubernetes install?I'm running Ubuntu 16.04 / LXD and ZFS. Created via conjure-up.

kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'

In https://kubernetes.io/docs/tutorials/kubernetes-basics/explore-interactive/

kubernetes-bootcamp-390780338-pvc52 

this lists pods that are currently running.

Now running on my vm running the cluster:

kube:~$ kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'


kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'
error: error parsing template {{range, template: output:1: unexpected unclosed action in range
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.327082 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO