Pod is not working. It shows pending status and shows below errors.
0/2 nodes are available: 1 node(s) didn’t match Pod’s node affinity/selector, 1 node(s) had untolerated taint {node.cloudprovider.kubernetes.io/uninitialized: true}. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling..
Add tolerations in Pod specification to include node.cloudprovider.kubernetes.io/uninitialized: Exists.
but not working.
kind: Pod
apiVersion: v1
metadata:
name: node-rear-controller-677ff94fd9-cbn4w
generateName: node-rear-controller-677ff94fd9-
namespace: fluidos
uid: 4baf792d-7d44-45fe-8326-339117510b71
resourceVersion: '10231449'
creationTimestamp: '2024-06-25T12:19:11Z'
labels:
app.kubernetes.io/component: rear-controller
app.kubernetes.io/instance: node-rear-controller
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: rear-controller
app.kubernetes.io/part-of: node
app.kubernetes.io/version: v0.0.5
helm.sh/chart: node-v0.0.5
pod-template-hash: 677ff94fd9
annotations:
kubectl.kubernetes.io/last-applied-configuration: >
{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{"kubectl.kubernetes.io/restartedAt":"2024-06-25T12:19:11Z"},"creationTimestamp":"2024-06-25T12:19:11Z","generateName":"node-rear-controller-677ff94fd9-","labels":{"app.kubernetes.io/component":"rear-controller","app.kubernetes.io/instance":"node-rear-controller","app.kubernetes.io/managed-by":"Helm","app.kubernetes.io/name":"rear-controller","app.kubernetes.io/part-of":"node","app.kubernetes.io/version":"v0.0.5","helm.sh/chart":"node-v0.0.5","pod-template-hash":"677ff94fd9"},"managedFields":[{"apiVersion":"v1","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/restartedAt":{}},"f:generateName":{},"f:labels":{".":{},"f:app.kubernetes.io/component":{},"f:app.kubernetes.io/instance":{},"f:app.kubernetes.io/managed-by":{},"f:app.kubernetes.io/name":{},"f:app.kubernetes.io/part-of":{},"f:app.kubernetes.io/version":{},"f:helm.sh/chart":{},"f:pod-template-hash":{}},"f:ownerReferences":{".":{},"k:{"uid":"12b10120-1bc3-4405-b779-372f0826f9fd"}":{}}},"f:spec":{"f:containers":{"k:{"name":"rear-controller"}":{".":{},"f:args":{},"f:command":{},"f:image":{},"f:imagePullPolicy":{},"f:name":{},"f:ports":{".":{},"k:{"containerPort":2710,"protocol":"TCP"}":{".":{},"f:containerPort":{},"f:name":{},"f:protocol":{}},"k:{"containerPort":3004,"protocol":"TCP"}":{".":{},"f:containerPort":{},"f:name":{},"f:protocol":{}},"k:{"containerPort":8081,"protocol":"TCP"}":{".":{},"f:containerPort":{},"f:name":{},"f:protocol":{}}},"f:readinessProbe":{".":{},"f:failureThreshold":{},"f:httpGet":{".":{},"f:path":{},"f:port":{},"f:scheme":{}},"f:periodSeconds":{},"f:successThreshold":{},"f:timeoutSeconds":{}},"f:resources":{},"f:securityContext":{".":{},"f:allowPrivilegeEscalation":{}},"f:terminationMessagePath":{},"f:terminationMessagePolicy":{}}},"f:dnsPolicy":{},"f:enableServiceLinks":{},"f:nodeSelector":{},"f:restartPolicy":{},"f:schedulerName":{},"f:securityContext":{".":{},"f:fsGroup":{},"f:runAsGroup":{},"f:runAsNonRoot":{},"f:runAsUser":{}},"f:serviceAccount":{},"f:serviceAccountName":{},"f:terminationGracePeriodSeconds":{}}},"manager":"k3s","operation":"Update","time":"2024-06-25T12:19:11Z"},{"apiVersion":"v1","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{".":{},"k:{"type":"PodScheduled"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{},"f:type":{}}}}},"manager":"k3s","operation":"Update","subresource":"status","time":"2024-06-25T12:19:11Z"}],"name":"node-rear-controller-677ff94fd9-cbn4w","namespace":"fluidos","ownerReferences":[{"apiVersion":"apps/v1","blockOwnerDeletion":true,"controller":true,"kind":"ReplicaSet","name":"node-rear-controller-677ff94fd9","uid":"12b10120-1bc3-4405-b779-372f0826f9fd"}],"resourceVersion":"10231316","uid":"4baf792d-7d44-45fe-8326-339117510b71"},"spec":{"containers":[{"args":["--grpc-port=2710","--http-port=3004"],"command":["/usr/bin/rear-controller"],"image":"ghcr.io/fluidos-project/rear-controller:v0.0.5","imagePullPolicy":"IfNotPresent","name":"rear-controller","ports":[{"containerPort":8081,"name":"healthz","protocol":"TCP"},{"containerPort":3004,"name":"gateway","protocol":"TCP"},{"containerPort":2710,"name":"grpc","protocol":"TCP"}],"readinessProbe":{"failureThreshold":3,"httpGet":{"path":"/readyz","port":"healthz","scheme":"HTTP"},"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1},"resources":{},"securityContext":{"allowPrivilegeEscalation":false},"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","volumeMounts":[{"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount","name":"kube-api-access-t2cdg","readOnly":true}]}],"dnsPolicy":"ClusterFirst","enableServiceLinks":true,"nodeSelector":{"node-role.fluidos.eu/worker":"true"},"preemptionPolicy":"PreemptLowerPriority","priority":0,"restartPolicy":"Always","schedulerName":"default-scheduler","securityContext":{"fsGroup":1000,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000},"serviceAccount":"node-rear-controller","serviceAccountName":"node-rear-controller","terminationGracePeriodSeconds":30,"tolerations":[{"effect":"NoExecute","key":"node.kubernetes.io/not-ready","operator":"Exists","tolerationSeconds":300},{"effect":"NoExecute","key":"node.cloudprovider.kubernetes.io/uninitialized","operator":"Exists"},{"effect":"NoExecute","key":"node.kubernetes.io/unreachable","operator":"Exists","tolerationSeconds":300}],"volumes":[{"name":"kube-api-access-t2cdg","projected":{"defaultMode":420,"sources":[{"serviceAccountToken":{"expirationSeconds":3607,"path":"token"}},{"configMap":{"items":[{"key":"ca.crt","path":"ca.crt"}],"name":"kube-root-ca.crt"}},{"downwardAPI":{"items":[{"fieldRef":{"apiVersion":"v1","fieldPath":"metadata.namespace"},"path":"namespace"}]}}]}}]},"status":{"conditions":[{"lastProbeTime":null,"lastTransitionTime":"2024-06-25T12:19:11Z","message":"0/2
nodes are available: 1 node(s) didn't match Pod's node affinity/selector,
1 node(s) had untolerated taint
{node.cloudprovider.kubernetes.io/uninitialized: true}. preemption: 0/2
nodes are available: 2 Preemption is not helpful for
scheduling..","reason":"Unschedulable","status":"False","type":"PodScheduled"}],"phase":"Pending","qosClass":"BestEffort"}}
kubectl.kubernetes.io/restartedAt: '2024-06-25T12:19:11Z'
ownerReferences:
- apiVersion: apps/v1
kind: ReplicaSet
name: node-rear-controller-677ff94fd9
uid: 12b10120-1bc3-4405-b779-372f0826f9fd
controller: true
blockOwnerDeletion: true
managedFields:
- manager: k3s
operation: Update
apiVersion: v1
time: '2024-06-25T12:19:11Z'
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:kubectl.kubernetes.io/restartedAt: {}
f:generateName: {}
f:labels:
.: {}
f:app.kubernetes.io/component: {}
f:app.kubernetes.io/instance: {}
f:app.kubernetes.io/managed-by: {}
f:app.kubernetes.io/name: {}
f:app.kubernetes.io/part-of: {}
f:app.kubernetes.io/version: {}
f:helm.sh/chart: {}
f:pod-template-hash: {}
f:ownerReferences:
.: {}
k:{"uid":"12b10120-1bc3-4405-b779-372f0826f9fd"}: {}
f:spec:
f:containers:
k:{"name":"rear-controller"}:
.: {}
f:args: {}
f:command: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:ports:
.: {}
k:{"containerPort":2710,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
k:{"containerPort":3004,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
k:{"containerPort":8081,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
f:readinessProbe:
.: {}
f:failureThreshold: {}
f:httpGet:
.: {}
f:path: {}
f:port: {}
f:scheme: {}
f:periodSeconds: {}
f:successThreshold: {}
f:timeoutSeconds: {}
f:resources: {}
f:securityContext:
.: {}
f:allowPrivilegeEscalation: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:dnsPolicy: {}
f:enableServiceLinks: {}
f:nodeSelector: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext:
.: {}
f:fsGroup: {}
f:runAsGroup: {}
f:runAsNonRoot: {}
f:runAsUser: {}
f:serviceAccount: {}
f:serviceAccountName: {}
f:terminationGracePeriodSeconds: {}
- manager: k3s
operation: Update
apiVersion: v1
time: '2024-06-25T12:19:11Z'
fieldsType: FieldsV1
fieldsV1:
f:status:
f:conditions:
.: {}
k:{"type":"PodScheduled"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
subresource: status
- manager: kubectl-client-side-apply
operation: Update
apiVersion: v1
time: '2024-06-25T12:23:35Z'
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:kubectl.kubernetes.io/last-applied-configuration: {}
f:spec:
f:tolerations: {}
spec:
volumes:
- name: kube-api-access-t2cdg
projected:
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
name: kube-root-ca.crt
items:
- key: ca.crt
path: ca.crt
- downwardAPI:
items:
- path: namespace
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
defaultMode: 420
containers:
- name: rear-controller
image: ghcr.io/fluidos-project/rear-controller:v0.0.5
command:
- /usr/bin/rear-controller
args:
- '--grpc-port=2710'
- '--http-port=3004'
ports:
- name: healthz
containerPort: 8081
protocol: TCP
- name: gateway
containerPort: 3004
protocol: TCP
- name: grpc
containerPort: 2710
protocol: TCP
resources: {}
volumeMounts:
- name: kube-api-access-t2cdg
readOnly: true
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
readinessProbe:
httpGet:
path: /readyz
port: healthz
scheme: HTTP
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
nodeSelector:
node-role.fluidos.eu/worker: 'true'
serviceAccountName: node-rear-controller
serviceAccount: node-rear-controller
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
fsGroup: 1000
schedulerName: default-scheduler
tolerations:
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoExecute
tolerationSeconds: 300
- key: node.cloudprovider.kubernetes.io/uninitialized
operator: Exists
effect: NoExecute
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoExecute
tolerationSeconds: 300
priority: 0
enableServiceLinks: true
preemptionPolicy: PreemptLowerPriority
status:
phase: Pending
conditions:
- type: PodScheduled
status: 'False'
lastProbeTime: null
lastTransitionTime: '2024-06-25T12:19:11Z'
reason: Unschedulable
message: >-
0/2 nodes are available: 1 node(s) didn't match Pod's node
affinity/selector, 1 node(s) had untolerated taint
{node.cloudprovider.kubernetes.io/uninitialized: true}. preemption: 0/2
nodes are available: 2 Preemption is not helpful for scheduling..
qosClass: BestEffort