kubernetes-yaml/description/Workload/Pods/example-nginx.yml

18 lines
279 B
YAML

apiVersion: v1
kind: Pods
metadata:
name: example-nginx
namespace: demo
labels:
name: nginx
app: nginx
type: pod
spec:
containers:
- name: web
image: nginx:1.23.3
ports:
- name: web
containerPort: 80
protocol: TCP