mirror of
https://github.com/Dannecron/netology-devops.git
synced 2025-12-25 23:32:37 +03:00
37 lines
603 B
YAML
37 lines
603 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
name: frontend
|
|
namespace: default
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
containers:
|
|
- image: praqma/network-multitool:alpine-extra
|
|
imagePullPolicy: IfNotPresent
|
|
name: network-multitool
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: frontend
|
|
namespace: default
|
|
spec:
|
|
ports:
|
|
- name: web
|
|
port: 80
|
|
selector:
|
|
app: frontend
|