NGINX deployment with agent fails - looking for protocol keyword
Kubernetes log error message:
"failed to create typed patch object: .spec.template.spec.containers[name="nginx"].ports: element 0: associative list with keys has an element that omits key field "protocol" (and doesn't have default value)"
- Added the agent to existing Kubernetes cluster via project at https://gitlab.com/ENKI-portal/gke-enki-gitlab-agent
- Added NGINX manifest file example for testing
- NGINX does not deploy. Agent issues the move error message.
Full log entry:
{
"insertId": "fypts6yu7sdzxcbp",
"jsonPayload": {
"name": "nginx-deployment",
"type": "apply",
"timestamp": "2021-09-09T18:06:25Z",
"kind": "Deployment",
"group": "apps",
"eventType": "resourceFailed",
"namespace": "gitlab-kubernetes-agent",
"error": "failed to create typed patch object: .spec.template.spec.containers[name=\"nginx\"].ports: element 0: associative list with keys has an element that omits key field \"protocol\" (and doesn't have default value)"
},
"resource": {
"type": "k8s_container",
"labels": {
"cluster_name": "enkiserver",
"pod_name": "gitlab-agent-795865567c-s4rrw",
"namespace_name": "gitlab-kubernetes-agent",
"container_name": "agent",
"location": "us-west1-a",
"project_id": "pelagic-script-244221"
}
},
"timestamp": "2021-09-09T18:06:25.500858703Z",
"severity": "ERROR",
"labels": {
"k8s-pod/app": "gitlab-agent",
"compute.googleapis.com/resource_name": "gke-enkiserver-default-pool-5035d795-i081",
"k8s-pod/pod-template-hash": "795865567c"
},
"logName": "projects/pelagic-script-244221/logs/stderr",
"receiveTimestamp": "2021-09-09T18:06:27.826947869Z"
}