Closed zwhitchcox closed 6 years ago
@zwhitchcox if that's the only output it means the pod cannot reach the apiserver.
You can add the flag - --v=10
to see the timeout.
open /run/flannel/subnet.env: no such file or directory
Forget that, you have some issues with your flannel setup.
That's what someone else just told me...I just followed a tutorial that said to run kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
...Maybe I should try a different networking implementation?
Will do that and report back
That fixed it!!!!!
If anyone else runs into the same problem as me, this is the solution:
Remove flannel,
installl calico with the following command:
kubectl apply -f https://docs.projectcalico.org/v3.2/getting-started/kubernetes/installation/hosted/etcd.yaml
kubectl apply -f https://docs.projectcalico.org/v3.2/getting-started/kubernetes/installation/rbac.yaml
kubectl apply -f https://docs.projectcalico.org/v3.2/getting-started/kubernetes/installation/hosted/calico.yaml
@zwhitchcox I meet the same problem !
`Name: default-http-backend-779898f74-x85t7
Namespace: ingress-nginx
Node: k8s02/10.90.136.106
Start Time: Thu, 23 Aug 2018 04:32:13 -0400
Labels: app.kubernetes.io/name=default-http-backend
pod-template-hash=335454930
Annotations:
Controlled By: ReplicaSet/default-http-backend-779898f74
Containers:
default-http-backend:
Container ID:
Image: gcr.io/google_containers/defaultbackend:1.4
Image ID:
Port: 8080/TCP
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Limits:
cpu: 10m
memory: 20Mi
Requests:
cpu: 10m
memory: 20Mi
Liveness: http-get http://:8080/healthz delay=30s timeout=5s period=10s #success=1 #failure=3
Environment:
Normal SuccessfulMountVolume 1m kubelet, k8s02 MountVolume.SetUp succeeded for volume "default-token-fv7kj" Normal Scheduled 1m default-scheduler Successfully assigned default-http-backend-779898f74-x85t7 to k8s02 Warning FailedCreatePodSandBox 19s (x2 over 54s) kubelet, k8s02 Failed create pod sandbox.`
I also use flannel。 I change flannel to calico。My questions is in etcd.yaml,what’s the meaning of thisIP
Thanks!
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):
What keywords did you search in NGINX Ingress controller issues before filing this one? many
Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug report
NGINX Ingress controller version: latest
Kubernetes version (use
kubectl version
):Environment:
uname -a
): Linux kube-server 4.15.0-30-generic #32-Ubuntu SMP Thu Jul 26 17:42:43 UTC 2018 x86_64 x86_64 x86_64 GNU/LinuxWhat happened: CrashBackOffLoop with nginx controller
description:
log:
What you expected to happen: it to start normally
How to reproduce it (as minimally and precisely as possible): Go here: https://gitlab.com/zwhitchcox/dohttps://gitlab.com/zwhitchcox/do, follow the instructions, then, when the cluster is up, run:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
then
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml
Anything else we need to know: