25 lines
450 B
YAML
25 lines
450 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: echoserver
|
||
|
namespace: echoserver
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: echoserver
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: echoserver
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: nginx:1.23.0-alpine
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
name: echoserver
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
env:
|
||
|
- name: PORT
|
||
|
value: "80"
|