You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying metricbeat-kubernetes.yml with kubectl apply -f ... it deploys without error, but about one minute later, all resources defined by this yaml file disappear from kubernetes:
PS D:\projects\seceng\kubernetes\metricbeat> kubectl apply -f metricbeat.yml
configmap "metricbeat-config" created
configmap "metricbeat-daemonset-modules" created
daemonset.extensions "metricbeat" created
configmap "metricbeat-deployment-modules" created
deployment.apps "metricbeat" created
clusterrolebinding.rbac.authorization.k8s.io "metricbeat" configured
clusterrole.rbac.authorization.k8s.io "metricbeat" configured
serviceaccount "metricbeat" unchanged
PS D:\projects\seceng\kubernetes\metricbeat> kubectl get ds -n kube-system metricbeat
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
metricbeat 6 6 6 6 6 <none> 14s
PS D:\projects\seceng\kubernetes\metricbeat> kubectl get configmap -n kube-system metricbeat-config
NAME DATA AGE
metricbeat-config 1 24s
PS D:\projects\seceng\kubernetes\metricbeat> date
Tue Jun 5 10:20:30 PDT 2018
PS D:\projects\seceng\kubernetes\metricbeat> date
Tue Jun 5 10:20:53 PDT 2018
PS D:\projects\seceng\kubernetes\metricbeat> kubectl get configmap -n kube-system metricbeat-config
Error from server (NotFound): configmaps "metricbeat-config" not found
PS D:\projects\seceng\kubernetes\metricbeat> kubectl get ds -n kube-system metricbeat
Error from server (NotFound): daemonsets.extensions "metricbeat" not found
Some discussion on Slack recommended trying with kubectl create instead of kubectl apply, which appears to work.
Additionally, a second recommendation was to comment out all kubernetes.io/cluster-service: "true" lines. This recommendation appears to work for kubectl apply.
kubectl create is what we recommend in the docs, but I agree with removing kubernetes.io/cluster-service: "true" to avoid messing with addon manager by default
When deploying metricbeat-kubernetes.yml with
kubectl apply -f ...
it deploys without error, but about one minute later, all resources defined by this yaml file disappear from kubernetes:Some discussion on Slack recommended trying with
kubectl create
instead ofkubectl apply
, which appears to work.Additionally, a second recommendation was to comment out all
kubernetes.io/cluster-service: "true"
lines. This recommendation appears to work forkubectl apply
.Tested against Google Kubernetes Engine.
The text was updated successfully, but these errors were encountered: