k8s-AppController icon indicating copy to clipboard operation
k8s-AppController copied to clipboard

Deploy example/simple test

Open N3stro opened this issue 7 years ago • 7 comments

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?

N3stro avatar Dec 08 '17 11:12 N3stro

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"

N3stro avatar Dec 08 '17 11:12 N3stro

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

aleksystasiak avatar Dec 21 '17 11:12 aleksystasiak

Anyone solve this problem?

kty1965 avatar Apr 09 '18 16:04 kty1965

@N3stro try this,giving the default:default service account privileges

kubectl create clusterrolebinding default-default-admin \
--clusterrole=cluster-admin \
--serviceaccount=default:default

oucb avatar May 08 '18 06:05 oucb

Tried creating clusterrolebinding using the above command, but the problem is still there. Can someone help to solve the issue?

jewel77 avatar May 09 '18 15:05 jewel77

I'm also facing same issues. Have you found any solutions for them @N3stro @aleksystasiak @kty1965 @jewel77 ?

Thanks!

TejasBob avatar Jul 23 '18 10:07 TejasBob

Hit the issue today. Any specification for pod/job dependencies definition?

zzxwill avatar Aug 10 '18 07:08 zzxwill