Files
Kubernetes/File/Yaml/nginx-deployment-v1.yaml
offends 89a07bc062
All checks were successful
continuous-integration/drone Build is passing
first commit
2025-12-20 21:10:05 +08:00

25 lines
469 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment-1
namespace: default
labels:
app: nginx
spec:
replicas: 1
strategy:
type: RollingUpdate
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
version: v1
spec:
containers:
- name: nginx
image: registry.cn-hangzhou.aliyuncs.com/offends/demo:nginx-alpine-v1
ports:
- containerPort: 80