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

Applying config/all.yaml problem #1

Open
huasiy opened this issue Feb 1, 2022 · 4 comments
Open

Applying config/all.yaml problem #1

huasiy opened this issue Feb 1, 2022 · 4 comments

Comments

@huasiy
Copy link

huasiy commented Feb 1, 2022

When I try to apply config.all.yaml, I get following error:
Error from server (Invalid): error when creating "config/all.yaml": Deployment.apps "manager" is invalid: spec.template.spec.containers[0].volumeMounts[2].name: Not found: "config-etcd"
I read all.yaml and find no volumes named config-etcd. How can I fix it?

k8s: v1.23
docker: v20.10.12

@lynnleelhl
Copy link

lynnleelhl commented Feb 1, 2022 via email

@huasiy
Copy link
Author

huasiy commented Feb 1, 2022

I can apply all.yaml now. But I can't get pod manager work correctly. Here is what I get from kubectl get po -A:

kube-system   manager-79b44dc889-qczpl                   0/1     CrashLoopBackOff   7 (4m32s ago)   21m
kube-system   manager-79b44dc889-tf98d                   0/1     CrashLoopBackOff   8 (83s ago)     21m
kube-system   manager-79b44dc889-xkvts                   0/1     Pending            0               21m

I check one pod's log and get:

E0201 15:34:59.915878       1 manager.go:241] controller-runtime/manager "msg"="Failed to get API Group-Resources" "error"="Get \"https://10.0.0.77:6443/api?timeout=32s\": dial tcp 10.0.0.77:6443: connect: connection refused"
E0201 15:34:59.916116       1 main.go:119] setup "msg"="unable to set up overall controller manager" "error"="Get \"https://10.0.0.77:6443/api?timeout=32s\": dial tcp 10.0.0.77:6443: connect: connection refused"

@lynnleelhl
Copy link

lynnleelhl commented Feb 1, 2022 via email

@huasiy
Copy link
Author

huasiy commented Feb 1, 2022

Actually I modify all.yaml to fit version 1.23 of k8s. I put field subresorces, validation, additionalPrinterColumns of crd into field versions. Here is the file: all.txt.
When I apply it, it seems to create some resources correctly. But I get error. Here is the result after I run k apply -f all.yaml
image
Should I just ignore the error?

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

2 participants