Closed oxr463 closed 3 years ago
I edited the file with the following change:
apiVersion: apps/v1
But I received the following errors:
kubectl create -f omsagent.yaml
error: error validating "omsagent.yaml": error validating data: ValidationError(DaemonSet.spec): missing required field "selector" in io.k8s.api.apps.v1.DaemonSetSpec; if you choose to ignore these errors, turn validation off with --validate=false
kubectl create -f omsagent.yaml --validate=false
The DaemonSet "omsagent" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"agentVersion":"1.10.0-1", "app":"omsagent", "dockerProviderVersion":"1.0.0-37"}: `selector` does not match template `labels`
@oxr463 are you still seeing this issue? Let us know we can close the issue otherwise....
@oxr463 are you still seeing this issue? Let us know we can close the issue otherwise....
We can close this.
See: https://docs.microsoft.com/en-us/azure/azure-monitor/insights/containers#configure-a-log-analytics-linux-agent-for-kubernetes