Kubernetes YAML生成ツール
視覚的にKubernetes YAMLマニフェストを生成します。Deployment、Service、ConfigMap、Secret、Ingress、PVCを作成。
入力
出力
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 - 技術的な詳細
Kubernetes uses YAML manifests to define resources. Common resources include Deployments (running containers), Services (networking), ConfigMaps (configuration), and Secrets (sensitive data).
コマンドラインでの代替方法
kubectl apply -f manifest.yaml kubectl get pods kubectl describe deployment my-app