This repository was archived by the owner on Oct 28, 2024. It is now read-only.
generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 69
The pod is always pending in the nested cluster #156
Copy link
Copy link
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
Description
What steps did you take and what happened:
[A clear and concise description on how to REPRODUCE the bug.]
Follow the guide:
https://github.com/kubernetes-sigs/cluster-api-provider-nested/blob/main/docs/README.md
- Deploy a nested cluster in Kind
- After nested cluster ready, deploy memcached service
The memcached pod is always pending, but the same deployment can work on real kubernetes environment
# kubectl --kubeconfig ./kubeconfig/kubeconfig.sample get pod
NAME READY STATUS RESTARTS AGE
memcached-0 0/1 Pending 0 6h43m
# kubectl --kubeconfig ./kubeconfig/kubeconfig.sample describe pod memcached-0
Name: memcached-0
Namespace: default
Priority: 0
Node: <none>
Labels: app=memcached
controller-revision-hash=memcached-6b8cf9888
statefulset.kubernetes.io/pod-name=memcached-0
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Controlled By: StatefulSet/memcached
Containers:
memcached-ct:
Image: memcached:1.5-alpine
Port: 11211/TCP
Host Port: 0/TCP
Args:
memcached
-m
256
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-zrvr9 (ro)
Volumes:
default-token-zrvr9:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-zrvr9
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events: <none>
What did you expect to happen:
The memcatched pods are running, just like
# kubectl get pod
NAME READY STATUS RESTARTS AGE
memcached-0 1/1 Running 0 12m
memcached-1 1/1 Running 0 12m
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
The deploy yaml for memcached
apiVersion: v1
kind: Service
metadata:
name: memcached
spec:
ports:
- port: 11211
selector:
app: memcached
clusterIP: None
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: memcached
spec:
selector:
matchLabels:
app: memcached
serviceName: "memcached"
replicas: 2
template:
metadata:
labels:
app: memcached
spec:
restartPolicy: Always
hostname: memcached
containers:
- name: memcached-ct
image: memcached:1.5-alpine
ports:
- containerPort: 11211
args: ["memcached", "-m", "256"]
Environment:
- cluster-api-provider-nested version: v0.10
- Minikube/KIND version: kind v0.11.1
- Kubernetes version: (use
kubectl version
): v1.21.1 - OS (e.g. from
/etc/os-release
): Red Hat Enterprise Linux 8
/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api-provider-nested/labels?q=area for the list of labels]
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.