Grundgerüst Kubernetes Deployment YAML-Datei
apiVersion: apps/v1
kind: Deployment
metadata:
name: <deployment name>
namespace: <namespace angeben>
annotations:
author: Phillip <mail@phillipunzen.de>
spec:
replicas: 3
selector:
matchLabels:
app: <app-name>
template:
metadata:
labels:
app: <app-name>
annotations:
author: Phillip <mail@phillipunzen.de>
spec:
containers:
- name: <pod name>
image: <docker-image:tag>
env:
- name: KEY
value: VALUE
ports:
- name: http
containerPort: <Port im Container>