shink commented on PR #3676:
URL:
https://github.com/apache/incubator-inlong/pull/3676#issuecomment-1120375112
> 2, choose k8s version v1.21+ to avoid policy/v1beta1 PodDisruptionBudget
is deprecated in v1.21+ warnning.
@dockerzhang
We can compate with different versions of Kubernetes in Helm Chart[^1].
For example:
```
Warning: policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+,
unavailable in v1.25+; use policy/v1 PodDisruptionBudget
```
Then we can check `apiVersion` in the Chart.
```yaml
{{- if .Capabilities.APIVersions.Has "policy/v1" }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
```
[^1]: https://os.51cto.com/article/689655.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]