add the old snippet md files

This commit is contained in:
Travis Shears 2025-06-05 16:20:57 +02:00
parent fc0dd204c7
commit bcf8313a4b
110 changed files with 3048 additions and 0 deletions

View file

@ -0,0 +1,29 @@
---
title: "k8s deployment.yaml env vscode snippet"
date: 2020-06-20T14:45:57+02:00
draft: false
snippet_types: ["vscode", "kubernetes"]
---
Most of my personal projects are deployed via kubernetes. I write a lot of
*deployment.yaml* files. In order to keep them clean and checked in to version control
I keep sensitive env variables in a config maps. Problem is adding values env values to
*deployment.yaml* files is pretty painful. This makes it a little less.
placed in *yaml.json* 😀 what a file name!
```json
{
"env var from configmap": {
"prefix": "env",
"body": [
"- name: $1",
" valueFrom:",
" configMapKeyRef:",
" key: $1",
" name: configmapname"
],
"description": "env varable from config map, remember to replace configmapname with your configmap name"
}
}
```