Using the k8s lookup, it returns a dictionary. I was expecting a list
A dict. There is only one item
TASK [debug] **************************************************************************************************************************
task path: /var/home/job/mydata/myrepos/m4e-operator/.idea/debug.yml:15
ok: [localhost] => {
"msg": {
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"creationTimestamp": "2021-04-04T03:59:35Z",
"generateName": "m4e-sample-php-fpm-deploy-74c9847c79-",
"labels": {
"app": "m4e-sample-php-fpm",
"app.kubernetes.io/component": "php-fpm",
"app.kubernetes.io/instance": "m4e-sample",
"app.kubernetes.io/managed-by": "ansible",
"app.kubernetes.io/name": "m4e-sample-php-fpm",
"app.kubernetes.io/part-of": "moodle",
"app.kubernetes.io/version": "v1alpha1",
"pod-template-hash": "74c9847c79"
},
"managedFields": [
{
"apiVersion": "v1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:generateName": {},
"f:labels": {
".": {},
"f:app": {},
"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:pod-template-hash": {}
},
"f:ownerReferences": {
".": {},
"k:{\"uid\":\"2233a2d7-8cfd-4c5b-bac0-87194a702bc6\"}": {
".": {},
"f:apiVersion": {},
"f:blockOwnerDeletion": {},
"f:controller": {},
"f:kind": {},
"f:name": {},
"f:uid": {}
}
}
},
"f:spec": {
"f:containers": {
"k:{\"name\":\"m4e-sample-php-fpm\"}": {
".": {},
"f:args": {},
"f:env": {
".": {},
"k:{\"name\":\"MOODLE_CONFIG_DIR\"}": {
".": {},
"f:name": {},
"f:value": {}
},
"k:{\"name\":\"PHP_FPM_LISTEN_ALLOWED_CLIENTS\"}": {
".": {},
"f:name": {},
"f:value": {}
},
"k:{\"name\":\"PHP_FPM_PROCESS_CONTROL_TIMEOUT\"}": {
".": {},
"f:name": {},
"f:value": {}
}
},
"f:image": {},
"f:imagePullPolicy": {},
"f:livenessProbe": {
".": {},
"f:exec": {
".": {},
"f:command": {}
},
"f:failureThreshold": {},
"f:initialDelaySeconds": {},
"f:periodSeconds": {},
"f:successThreshold": {},
"f:timeoutSeconds": {}
},
"f:name": {},
"f:ports": {
".": {},
"k:{\"containerPort\":9000,\"protocol\":\"TCP\"}": {
".": {},
"f:containerPort": {},
"f:protocol": {}
}
},
"f:readinessProbe": {
".": {},
"f:exec": {
".": {},
"f:command": {}
},
"f:failureThreshold": {},
"f:initialDelaySeconds": {},
"f:periodSeconds": {},
"f:successThreshold": {},
"f:timeoutSeconds": {}
},
"f:resources": {
".": {},
"f:limits": {
".": {},
"f:cpu": {},
"f:memory": {}
},
"f:requests": {
".": {},
"f:cpu": {},
"f:memory": {}
}
},
"f:terminationMessagePath": {},
"f:terminationMessagePolicy": {},
"f:volumeMounts": {
".": {},
"k:{\"mountPath\":\"/config\"}": {
".": {},
"f:mountPath": {},
"f:name": {},
"f:readOnly": {}
},
"k:{\"mountPath\":\"/var/moodledata\"}": {
".": {},
"f:mountPath": {},
"f:name": {}
}
}
}
},
"f:dnsPolicy": {},
"f:enableServiceLinks": {},
"f:restartPolicy": {},
"f:schedulerName": {},
"f:securityContext": {
".": {},
"f:fsGroup": {},
"f:runAsUser": {}
},
"f:terminationGracePeriodSeconds": {},
"f:volumes": {
".": {},
"k:{\"name\":\"config-php\"}": {
".": {},
"f:name": {},
"f:secret": {
".": {},
"f:defaultMode": {},
"f:items": {},
"f:secretName": {}
}
},
"k:{\"name\":\"moodledata\"}": {
".": {},
"f:name": {},
"f:persistentVolumeClaim": {
".": {},
"f:claimName": {}
}
}
}
}
},
"manager": "kube-controller-manager",
"operation": "Update",
"time": "2021-04-04T03:59:35Z"
},
{
"apiVersion": "v1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:status": {
"f:conditions": {
"k:{\"type\":\"ContainersReady\"}": {
".": {},
"f:lastProbeTime": {},
"f:lastTransitionTime": {},
"f:status": {},
"f:type": {}
},
"k:{\"type\":\"Initialized\"}": {
".": {},
"f:lastProbeTime": {},
"f:lastTransitionTime": {},
"f:status": {},
"f:type": {}
},
"k:{\"type\":\"Ready\"}": {
".": {},
"f:lastProbeTime": {},
"f:lastTransitionTime": {},
"f:status": {},
"f:type": {}
}
},
"f:containerStatuses": {},
"f:hostIP": {},
"f:phase": {},
"f:podIP": {},
"f:podIPs": {
".": {},
"k:{\"ip\":\"10.88.136.128\"}": {
".": {},
"f:ip": {}
}
},
"f:startTime": {}
}
},
"manager": "kubelet",
"operation": "Update",
"time": "2021-04-04T04:00:04Z"
}
],
"name": "m4e-sample-php-fpm-deploy-74c9847c79-gpb6b",
"namespace": "osdk-pr-0-0",
"ownerReferences": [
{
"apiVersion": "apps/v1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "ReplicaSet",
"name": "m4e-sample-php-fpm-deploy-74c9847c79",
"uid": "2233a2d7-8cfd-4c5b-bac0-87194a702bc6"
}
],
"resourceVersion": "68158643",
"uid": "228a69ba-28fb-42f3-973c-b3c8a261dd6f"
},
"spec": {
"containers": [
{
"args": [
"php-fpm"
],
"env": [
{
"name": "PHP_FPM_LISTEN_ALLOWED_CLIENTS",
"value": "any"
},
{
"name": "PHP_FPM_PROCESS_CONTROL_TIMEOUT",
"value": "20"
},
{
"name": "MOODLE_CONFIG_DIR",
"value": "/config"
}
],
"image": "quay.io/krestomatio/moodle_web",
"imagePullPolicy": "Always",
"livenessProbe": {
"exec": {
"command": [
"/usr/libexec/check-container-php",
"-t",
"-l"
]
},
"failureThreshold": 3,
"initialDelaySeconds": 5,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 3
},
"name": "m4e-sample-php-fpm",
"ports": [
{
"containerPort": 9000,
"protocol": "TCP"
}
],
"readinessProbe": {
"exec": {
"command": [
"/usr/libexec/check-container-php",
"-t",
"-r"
]
},
"failureThreshold": 6,
"initialDelaySeconds": 5,
"periodSeconds": 30,
"successThreshold": 1,
"timeoutSeconds": 3
},
"resources": {
"limits": {
"cpu": "1",
"memory": "1Gi"
},
"requests": {
"cpu": "150m",
"memory": "256Mi"
}
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"volumeMounts": [
{
"mountPath": "/var/moodledata",
"name": "moodledata"
},
{
"mountPath": "/config",
"name": "config-php",
"readOnly": true
},
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "default-token-k2qkg",
"readOnly": true
}
]
}
],
"dnsPolicy": "ClusterFirst",
"enableServiceLinks": true,
"nodeName": "minikube",
"preemptionPolicy": "PreemptLowerPriority",
"priority": 0,
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {
"fsGroup": 48,
"runAsUser": 48
},
"serviceAccount": "default",
"serviceAccountName": "default",
"terminationGracePeriodSeconds": 30,
"tolerations": [
{
"effect": "NoExecute",
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"tolerationSeconds": 300
},
{
"effect": "NoExecute",
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"tolerationSeconds": 300
}
],
"volumes": [
{
"name": "moodledata",
"persistentVolumeClaim": {
"claimName": "m4e-sample-moodle-data"
}
},
{
"name": "config-php",
"secret": {
"defaultMode": 420,
"items": [
{
"key": "config.php",
"path": "config.php"
}
],
"secretName": "m4e-sample-moodle-secret"
}
},
{
"name": "default-token-k2qkg",
"secret": {
"defaultMode": 420,
"secretName": "default-token-k2qkg"
}
}
]
},
"status": {
"conditions": [
{
"lastProbeTime": null,
"lastTransitionTime": "2021-04-04T03:59:36Z",
"status": "True",
"type": "Initialized"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2021-04-04T04:00:04Z",
"status": "True",
"type": "Ready"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2021-04-04T04:00:04Z",
"status": "True",
"type": "ContainersReady"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2021-04-04T03:59:36Z",
"status": "True",
"type": "PodScheduled"
}
],
"containerStatuses": [
{
"containerID": "docker://b77ee173496abb37a0092d2869cf1efb59c2af43adbf5ecab1d256e0108e9836",
"image": "quay.io/krestomatio/moodle_web:latest",
"imageID": "docker-pullable://quay.io/krestomatio/moodle_web@sha256:48d069f0bc5301a547966ea20050d1b3fcfeb8dce871c65230cf8d6d62eb867c",
"lastState": {},
"name": "m4e-sample-php-fpm",
"ready": true,
"restartCount": 0,
"started": true,
"state": {
"running": {
"startedAt": "2021-04-04T03:59:38Z"
}
}
}
],
"hostIP": "192.168.39.222",
"phase": "Running",
"podIP": "10.88.136.128",
"podIPs": [
{
"ip": "10.88.136.128"
}
],
"qosClass": "Burstable",
"startTime": "2021-04-04T03:59:36Z"
}
}
}
META: ran handlers
META: ran handlers