You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
666 B
YAML
37 lines
666 B
YAML
3 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: web-methodology-deployment
|
||
|
labels:
|
||
|
web: methodology
|
||
|
spec:
|
||
|
replicas: 2
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
web: methodology
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
web: methodology
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: web-methodology
|
||
|
image: echo0821/web-methodology
|
||
|
ports:
|
||
|
- containerPort: 5000
|
||
|
|
||
|
---
|
||
|
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: web-methodology-services
|
||
|
spec:
|
||
|
selector:
|
||
|
web: methodology
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 80
|
||
|
targetPort: 5000
|
||
|
|