darxkies / k8s-tew

Kubernetes - The Easier Way
GNU General Public License v3.0
307 stars 38 forks source link

CentOS 7 - Cannot find package. #2

Closed byakku closed 6 years ago

byakku commented 6 years ago

# System Info cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" [..]

# Hypervisor: ESXi 6.5

# Setup: 4 Core, 3GB RAM

# go version go version go1.8.3 linux/amd64

# git version git version 1.8.3.1

Problem: Cannot install with go install

[root@k8s-master-01 ~]# go install github.com/darxkies/k8s-tew/cmd/k8s-tew can't load package: package github.com/darxkies/k8s-tew/cmd/k8s-tew: cannot find package "github.com/darxkies/k8s-tew/cmd/k8s-tew" in any of: /usr/lib/golang/src/github.com/darxkies/k8s-tew/cmd/k8s-tew (from $GOROOT) /root/go/src/github.com/darxkies/k8s-tew/cmd/k8s-tew (from $GOPATH)

Binary (https://github.com/darxkies/t8s-tew/releases) ends with 404.

darxkies commented 6 years ago

I have improved the documentation to fix the mentioned issues. Please let me know if it works for you.

byakku commented 6 years ago
[root@k8s-master-01 bin]# curl -s https://api.github.com/repos/darxkies/k8s-tew/releases/latest | grep "browser_download_url" | cut -d : -f 2,3 | tr -d \" | sudo wget -O /usr/local/bin/k8s-tew -qi - && sudo chmod a+x /usr/local/bin/k8s-tew
[root@k8s-master-01 bin]# k8s-tew initialize
-bash: k8s-tew: command not found

./k8s-tew command works okay

I was able to add nodes, generate files but when I start cluster I got this:

RRO[0000] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'' failed with error 'exit status 2' (Output: Error:  client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused\n; error #1: dial tcp 127.0.0.1:2379: getsockopt: connection refused\n\nerror #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused\nerror #1: dial tcp 127.0.0.1:2379: getsockopt: connection refused\n\n)" name=flanneld-configuration

ERRO[0000] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: The connection to the server 127.0.0.1:8080 was refused - did you specify the right host or port?\n)" name=k8s-kubelet-configuration
ERRO[0000] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/admin-user.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/admin-user.yml' failed with error 'exit status 1' (Output: The connection to the server 127.0.0.1:8080 was refused - did you specify the right host or port?\n)" name=k8s-admin-user-configuration
ERRO[0000] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f https://storage.googleapis.com/kubernetes-the-hard-way/kube-dns.yaml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f https://storage.googleapis.com/kubernetes-the-hard-way/kube-dns.yaml' failed with error 'exit status 1' (Output: The connection to the server 127.0.0.1:8080 was refused - did you specify the right host or port?\n)" name=k8s-kube-dns
ERRO[0000] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: The connection to the server 127.0.0.1:8080 was refused - did you specify the right host or port?\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": Get http://localhost:8080/api: dial tcp 127.0.0.1:8080: getsockopt: connection refused\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": Get http://localhost:8080/api: dial tcp 127.0.0.1:8080: getsockopt: connection refused\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": Get http://localhost:8080/api: dial tcp 127.0.0.1:8080: getsockopt: connection refused\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": Get http://localhost:8080/api: dial tcp 127.0.0.1:8080: getsockopt: connection refused\n)" name=k8s-kubernetes-dashboard
ERRO[0006] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0006] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard
ERRO[0009] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'' failed with error 'exit status 4' (Output: Error:  client: etcd cluster is unavailable or misconfigured; error #0: client: endpoint http://127.0.0.1:2379 exceeded header timeout\n; error #1: dial tcp 127.0.0.1:4001: getsockopt: connection refused\n\nerror #0: client: endpoint http://127.0.0.1:2379 exceeded header timeout\nerror #1: dial tcp 127.0.0.1:4001: getsockopt: connection refused\n\n)" name=flanneld-configuration
ERRO[0011] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0012] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard
ERRO[0017] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0017] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard
ERRO[0018] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'' failed with error 'exit status 4' (Output: Error:  client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused\n; error #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout\n\nerror #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused\nerror #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout\n\n)" name=flanneld-configuration
ERRO[0022] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0022] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard
ERRO[0027] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'' failed with error 'exit status 4' (Output: Error:  client: etcd cluster is unavailable or misconfigured; error #0: client: endpoint http://127.0.0.1:2379 exceeded header timeout\n; error #1: dial tcp 127.0.0.1:4001: getsockopt: connection refused\n\nerror #0: client: endpoint http://127.0.0.1:2379 exceeded header timeout\nerror #1: dial tcp 127.0.0.1:4001: getsockopt: connection refused\n\n)" name=flanneld-configuration
ERRO[0027] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0028] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard
ERRO[0033] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0033] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard
ERRO[0036] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'' failed with error 'exit status 4' (Output: Error:  client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused\n; error #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout\n\nerror #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused\nerror #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout\n\n)" name=flanneld-configuration
ERRO[0038] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0039] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard
ERRO[0043] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0044] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard
ERRO[0045] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/etcd/etcdctl --ca-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/ca.pem --cert-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes.pem --key-file=/usr/local/bin/artifacts/etc/k8s-tew/ssl/kubernetes-key.pem set /coreos.com/network/config '{ \"Network\": \"10.200.0.0/16\" }'' failed with error 'exit status 4' (Output: Error:  client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused\n; error #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout\n\nerror #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused\nerror #1: client: endpoint http://127.0.0.1:2379 exceeded header timeout\n\n)" name=flanneld-configuration
ERRO[0048] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f /usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml' failed with error 'exit status 1' (Output: unable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRole\nunable to recognize \"/usr/local/bin/artifacts/etc/k8s-tew/k8s/kubelet.yml\": no matches for rbac.authorization.k8s.io/, Kind=ClusterRoleBinding\n)" name=k8s-kubelet-configuration
ERRO[0049] command failed                                command="/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -" error="Command '/usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl convert -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | /usr/local/bin/artifacts/opt/k8s-tew/bin/k8s/kubectl --server=127.0.0.1:8080 apply -f -' failed with error 'exit status 1' (Output: unable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=Role\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for rbac.authorization.k8s.io/, Kind=RoleBinding\nunable to recognize \"https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml\": no matches for apps/, Kind=Deployment\nerror: no objects passed to apply\n)" name=k8s-kubernetes-dashboard

It keeps trying to install those unless I force stop.

darxkies commented 6 years ago

I am trying to figure out, what went wrong:

I kind of doubt that k8s-tew is going to work on CentOS 7.

In directory artifacts/var/log/k8s-tew are all log files. Is it possible to append those to the ticket?

byakku commented 6 years ago

Got days off now. I'll update post and test it again probably during the weekend.

darxkies commented 6 years ago

I have just released version 2.0.0 that fixes the issues with CentOS 7.