mirror of
https://github.com/rafamadriz/friendly-snippets
synced 2024-09-16 22:14:02 +02:00
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:
parent
a227a1aa0c
commit
a45fd0bf0c
1 changed files with 8 additions and 0 deletions
|
@ -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:",
|
||||
|
|
Loading…
Reference in a new issue