feat(kubernetes): set default container (#399)

* feat(kubernetes): set default container

According to https://github.com/kubernetes/enhancements/blob/master/keps/sig-cli/2227-kubectl-default-container/README.md

* feat(kubernetes): set default container for daemon set
This commit is contained in:
Jan Christoph Ebersbach 2024-02-12 05:41:25 +01:00 committed by GitHub
parent a227a1aa0c
commit a45fd0bf0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,6 +120,8 @@
" type: RollingUpdate",
" template:",
" metadata:",
" annotations:",
" kubectl.kubernetes.io/default-container: ${1:myjob}",
" labels:",
" app: ${1:myjob}",
" spec:",
@ -309,6 +311,8 @@
" name: \"${1:myapp}\"",
" namespace: ${2:default}",
" labels:",
" annotations:",
" kubectl.kubernetes.io/default-container: ${1:myapp}",
" app: \"${1:myapp}\"",
"spec:",
" containers:",
@ -387,6 +391,8 @@
" app: ${1:myapp}",
" template:",
" metadata:",
" annotations:",
" kubectl.kubernetes.io/default-container: ${1:myapp}",
" labels:",
" app: ${1:myapp}",
" spec:",
@ -434,6 +440,8 @@
" replicas: ${3:3} # by default is 1",
" template:",
" metadata:",
" annotations:",
" kubectl.kubernetes.io/default-container: ${1:myapp}",
" labels:",
" app: ${1:myapp} # has to match .spec.selector.matchLabels",
" spec:",