Kubernetes YAML Generator
Kubernetes-Manifeste wie Deployments, Services und ConfigMaps generieren.
Eingabe
Ausgabe
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
namespace: default
labels:
app: my-app
spec:
replicas: 1
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app
image: nginx:latest
ports:
- containerPort: 80
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 80
initialDelaySeconds: 5
periodSeconds: 5kubectl apply -f my-app.yamlKubernetes Manifests - Technische Details
Kubernetes uses YAML manifests to define resources. Common resources include Deployments (running containers), Services (networking), ConfigMaps (configuration), and Secrets (sensitive data).
Kommandozeilen-Alternative
kubectl apply -f manifest.yaml kubectl get pods kubectl describe deployment my-app