Open sanyer opened 4 years ago
Indeed. This issue is affecting Kubernetes 1.16+. I will try to work on a pull request for this; it shouldn't be that hard.
[EDIT] Now that I checked on the docs site it does say that the apiVersion has to be manually changed from the manifest (https://docs.fluentbit.io/manual/installation/kubernetes#note-for-kubernetes-v-1-16). However this is not enough as "spec" expects a "selector" property and the manifest will be rejected without it. Sadly this is not reflected on the repo's README. Maybe @edsiper could take a look?
I double checked and this in fact is fixed on PR https://github.com/fluent/fluent-bit-kubernetes-logging/pull/66
I think https://github.com/fluent/fluent-bit-kubernetes-logging/pull/81 fixed most or all of these.
According to kubectl changelog for 1.15.0:
The following APIs are no longer served by default:
apps/v1beta1
andapps/v1beta2
- useapps/v1
insteaddaemonsets
,deployments
,replicasets
resources underextensions/v1beta1
- useapps/v1
insteadnetworkpolicies
resources underextensions/v1beta1
- usenetworking.k8s.io/v1
insteadpodsecuritypolicies
resources underextensions/v1beta1
- usepolicy/v1beta1
instead