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:
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>
ports:
- name: http
containerPort: <Port im Container>