rundeck-plugins / kubernetes

52 stars 59 forks source link

Get Pods as Rundeck Nodes not working #109

Closed skbihari closed 2 years ago

skbihari commented 3 years ago

Hi, I am trying to add Kubernetes pods as Rundeck nodes but, pods are not showing up as nodes.

Env:

Kubernetes version: v1.19.7 (docker local setup) kubernetes-rundeck-plugin version: 2.0.4 kubernetes-python-clinet version: 11.0.0

rundeck version: 3.3.12 (CE)

image

using RD_CONFIG_ENV: incluster to use serviceAccount Auth

image
rundeck-7799695489-hbd8z rundeck DEBUG: kubernetes-model-source: Log level configured for DEBUG
rundeck-7799695489-hbd8z rundeck DEBUG: kubernetes-model-source: None
rundeck-7799695489-hbd8z rundeck DEBUG: kubernetes-model-source: metadata.namespace=default
rundeck-7799695489-hbd8z rundeck DEBUG: kubernetes-model-source: 10.1.0.56      default application-5b88846f65-dfq6c    application
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: ------
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: container-name:application
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:application
rundeck-7799695489-hbd8z rundeck DEBUG: kubernetes-model-source: 10.1.0.40      default gateway-7474d64686-lmndg        gateway
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: ------
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: container-name:gateway
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:gateway
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:nginx-prometheus-exporter
rundeck-7799695489-hbd8z rundeck DEBUG: kubernetes-model-source: 10.1.0.40      default gateway-7474d64686-lmndg        nginx-prometheus-exporter
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: ------
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: container-name:nginx-prometheus-exporter
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:gateway
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:nginx-prometheus-exporter
rundeck-7799695489-hbd8z rundeck DEBUG: kubernetes-model-source: 10.1.0.64      default rundeck-7799695489-hbd8z        nginx
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: ------
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: container-name:nginx
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:nginx
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:rundeck
rundeck-7799695489-hbd8z rundeck DEBUG: kubernetes-model-source: 10.1.0.64      default rundeck-7799695489-hbd8z        rundeck
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: ------
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: container-name:rundeck
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:nginx
rundeck-7799695489-hbd8z rundeck INFO: kubernetes-model-source: pod-container-name:rundeck
skbihari commented 3 years ago

the issue is caused by boEmoticon addition to the status value https://github.com/rundeck-plugins/kubernetes/blob/master/contents/pods-resource-model.py#L260

disabled Emoticon