k8s-AppController
k8s-AppController copied to clipboard
Deploy example/simple test
Hi,
I'm trying to test Appcontroller, but I have problems when I want to start it manually or with ./creat.sh also. When I try with creat.sh I'm getting this problem: Waiting for pod k8s-appcontroller to start running Waiting for tprs to register URLs ..........FAILED: kubectl get definitions &> /dev/null
When manually: I have created existing_job.yaml, it was ok then: kubectl create -f ../../manifests/appcontroller.yaml , it was also ok Thep problem is start at this part: asd@mach1:~/appcon/k8s-AppController/examples/simple$ kubectl create -f deps.yaml unable to recognize "deps.yaml": no matches for appcontroller.k8s/, Kind=Dependency unable to recognize "deps.yaml": no matches for appcontroller.k8s/, Kind=Dependency unable to recognize "deps.yaml": no matches for appcontroller.k8s/, Kind=Dependency unable to recognize "deps.yaml": no matches for appcontroller.k8s/, Kind=Dependency unable to recognize "deps.yaml": no matches for appcontroller.k8s/, Kind=Dependency unable to recognize "deps.yaml": no matches for appcontroller.k8s/, Kind=Dependency
All examples should wor because it hase been cloned from orginal repo. Any one any idea what is the problem?
The logs from AppController: E1208 11:52:19.659884 1 reflector.go:199] github.com/Mirantis/k8s-AppController/vendor/k8s.io/client-go/tools/cache/reflector.go:94: Failed to list *v1.ConfigMap: configmaps is forbidden: User "system:serviceaccount:default:default" cannot list configmaps in the namespace "default"
I have similiar issues, bare-metal 1.8.5 cluster:
cat pod.yaml | kubectl exec -i k8s-appcontroller kubeac wrap | kubectl create -f -
error: unable to recognize "STDIN": no matches for appcontroller.k8s/, Kind=Definition
kubectl exec k8s-appcontroller kubeac -- get-status
2017/12/21 11:02:16 No Kubernetes cluster URL provided. Assume in-cluster.
2017/12/21 11:02:16 Using label selector:
2017/12/21 11:02:16 Getting status of flow DEFAULT
2017/12/21 11:02:16 the server does not allow access to the requested resource (get definitions.appcontroller.k8s)
command terminated with exit code 1
Anyone solve this problem?
@N3stro try this,giving the default:default
service account privileges
kubectl create clusterrolebinding default-default-admin \
--clusterrole=cluster-admin \
--serviceaccount=default:default
Tried creating clusterrolebinding using the above command, but the problem is still there. Can someone help to solve the issue?
I'm also facing same issues. Have you found any solutions for them @N3stro @aleksystasiak @kty1965 @jewel77 ?
Thanks!
Hit the issue today. Any specification for pod/job dependencies definition?