Application manifest builder
Create a compact starting point for a cloud-hosted Kubernetes application.
# Target region: eu-west-1 (AWS)
# Apply after connecting kubectl to the intended cluster.
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-api
namespace: production
labels:
app: web-api
spec:
replicas: 2
selector:
matchLabels:
app: web-api
template:
metadata:
labels:
app: web-api
spec:
containers:
- name: web-api
image: nginx:1.27
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: web-api
namespace: production
spec:
type: ClusterIP
selector:
app: web-api
ports:
- port: 8080
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-api
namespace: production
spec:
rules:
- host: api.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web-api
port:
number: 8080Deployment checkConfirm image tags, health probes, resources, secrets, network policies, TLS and the target cluster context before applying any generated manifest.