Files
infra/dotfiles/desktop/.emacs.d/snippets/yaml-mode/k8deployment
Fabio Scotto di Santolo 0826265363 Add Emacs desktop provisioning and dev toolchain packages
Install Emacs and copy the desktop .emacs.d config so the editor setup is managed with the rest of desktop dotfiles. Add vterm/build/debug dependencies plus C/C++ and Go tooling needed by the configured workflow.
2026-03-17 11:50:59 +01:00

45 lines
1.0 KiB
Plaintext

#key : k8s/deployment
# --
apiVersion: apps/v1
kind: Deployment
metadata:
name: ${1:foo}-deploy
spec:
replicas: ${2:1}
selector:
matchLabels:
app: $1
template:
metadata:
labels:
app: $1
${3:webkind}: ${4:colour}
spec:
containers:
- name: $1
image: docker.io/nginx:latest
volumeMounts:
- name: nginx-template-volume
mountPath: /etc/nginx/templates
- name: nginx-confd-volume
mountPath: /etc/nginx/conf.d
ports:
- containerPort: 80
env:
- name: NGINX_ENVSUBST_OUTPUT_DIR
value: /usr/share/nginx/html
- name: COLOUR
valueFrom:
configMapKeyRef:
name: nginx-colour-config
key: $1.colour
volumes:
- name: nginx-template-volume
configMap:
name: nginx-template-config
- name: nginx-confd-volume
configMap:
name: nginx-conf.d-config