Skip to content

Commit

Permalink
remove extra spaces in deployment and pod snippets (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
stove-panini authored Feb 12, 2024
1 parent efdd763 commit 4368924
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions snippets/kubernetes.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@
"apiVersion: apps/v1",
"kind: Deployment",
"metadata:",
" name: ${1:myjob}",
" name: ${1:myjob}",
" namespace: ${2:default}",
" labels:",
" app: ${1:myjob}",
" app: ${1:myjob}",
"spec:",
" selector:",
" matchLabels:",
Expand All @@ -121,15 +121,15 @@
" template:",
" metadata:",
" labels:",
" app: ${1:myjob}",
" app: ${1:myjob}",
" spec:",
" # initContainers:",
" # Init containers are exactly like regular containers, except:",
" # - Init containers always run to completion.",
" # - Each init container must complete successfully before the next one starts.",
" containers:",
" - name: ${1:myjob}",
" image: ${3:myjob:latest}",
" - name: ${1:myjob}",
" image: ${3:myjob:latest}",
" imagePullPolicy: ${4|IfNotPresent,Always,Never|}",
" resources:",
" requests:",
Expand Down Expand Up @@ -162,8 +162,8 @@
" name: ${1:myjob}",
" key: DB_HOST",
" ports:",
" - containerPort: ${5:80}",
" name: ${1:myjob}",
" - containerPort: ${5:80}",
" name: ${1:myjob}",
" volumeMounts:",
" - name: localtime",
" mountPath: /etc/localtime",
Expand Down Expand Up @@ -329,7 +329,7 @@
" key: DB_HOST",
" ports:",
" - containerPort: ${4:80}",
" name: http",
" name: http",
" volumeMounts:",
" - name: localtime",
" mountPath: /etc/localtime",
Expand Down

0 comments on commit 4368924

Please sign in to comment.