iac/apps/pm/dsinv/static.yaml

63 lines
1.2 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: static
namespace: pm
labels:
app: static
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: static
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: static
version: stable
spec:
containers:
- image: cr.yandex/crp3ccidau046kdj8g9q/pm-frontend:contour_abfaba7c
imagePullPolicy: Always
name: static
ports:
- containerPort: 80
name: http
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: dockerhub
nodeSelector:
name: generic
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: static-service
namespace: pm
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: static
sessionAffinity: None
type: ClusterIP