-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change file names & create coredns.md
- Loading branch information
1 parent
a2cebab
commit 2a7587c
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## Error Msg | ||
Run | ||
|
||
kubeadm init --apiserver-advertise-address=192.168.1.140 --image-repository=registry.aliyuncs.com/google_containers --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors=Swap | ||
|
||
Found | ||
|
||
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/coredns:v1.8.0 not found: manifest unknown: manifest unknown | ||
|
||
|
||
## What Happended | ||
Docker images source has only coredns:1.8.0 but coredns:v1.8.0 was required. | ||
|
||
This might indicate a typo somewhere in some config file, but this solution will only work on how to get around this error. | ||
|
||
## The Plan | ||
Pull this image manually from source, then retag this image to the required tag. | ||
|
||
The required tag can be found in the Error Message. | ||
|
||
Reset kubenetes first, | ||
|
||
kubeadm reset | ||
rm $HOME/.kube/config | ||
|
||
Then, | ||
|
||
docker pull coredns/coredns:1.8.0 | ||
docker tag coredns/coredns:1.8.0 registry.aliyuncs.com/google_containers/coredns:v1.8.0 | ||
docker images | ||
|
||
Then initialize kubeadm again, | ||
|
||
kubeadm init --apiserver-advertise-address=192.168.1.140 --image-repository=registry.aliyuncs.com/google_containers --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors=Swap | ||
|
||
You should be good to go now. | ||
|
||
## Other useful commands | ||
How to remove docker images | ||
|
||
https://stackoverflow.com/questions/32723111 | ||
https://stackoverflow.com/questions/44785585 |
File renamed without changes.