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

18 lines
278 B
YAML
Raw Normal View History

2023-12-15 16:39:01 +08:00
apiVersion: v1
kind: Pod
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