grafana -> notification-provider -> mattermost | see https://gitlab.fedy95.com/dev/notification-provider
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.5 KiB
87 lines
2.5 KiB
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: notification-provider
|
|
namespace: default
|
|
labels:
|
|
tier: notification-provider
|
|
environment: dev
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: notification-provider
|
|
tier: notification-provider
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: notification-provider
|
|
tier: notification-provider
|
|
spec:
|
|
volumes:
|
|
- name: shared-files
|
|
emptyDir: { }
|
|
- name: notification-provider-app-configmap0-dev
|
|
configMap:
|
|
defaultMode: 0664
|
|
name: notification-provider-app-configmap0-dev
|
|
- name: notification-provider-nginx-configmap0-dev
|
|
configMap:
|
|
defaultMode: 0664
|
|
name: notification-provider-nginx-configmap0-dev
|
|
containers:
|
|
- name: php
|
|
image: gitlab-registry.fedy95.com:5002/dev/notification-provider:latest
|
|
resources:
|
|
requests:
|
|
cpu: "125m"
|
|
memory: "64Mi"
|
|
limits:
|
|
cpu: "250m"
|
|
memory: "128Mi"
|
|
volumeMounts:
|
|
- name: shared-files
|
|
mountPath: /var/www/localhost
|
|
- name: notification-provider-app-configmap0-dev
|
|
mountPath: /var/www/localhost/.env
|
|
subPath: .env
|
|
lifecycle:
|
|
postStart:
|
|
exec:
|
|
command:
|
|
- "/bin/sh"
|
|
- "-c"
|
|
- >
|
|
cp -rp /app/* /var/www/localhost
|
|
|
|
- name: nginx
|
|
image: nginx:1.21-alpine
|
|
resources:
|
|
requests:
|
|
cpu: "125m"
|
|
memory: "64Mi"
|
|
limits:
|
|
cpu: "250m"
|
|
memory: "128Mi"
|
|
volumeMounts:
|
|
- name: shared-files
|
|
mountPath: /var/www/localhost
|
|
- name: notification-provider-app-configmap0-dev
|
|
mountPath: /var/www/localhost/.env
|
|
subPath: .env
|
|
- name: notification-provider-nginx-configmap0-dev
|
|
mountPath: /etc/nginx/nginx.conf
|
|
subPath: nginx.conf
|
|
- name: notification-provider-nginx-configmap0-dev
|
|
mountPath: /etc/nginx/conf.d/default.conf
|
|
subPath: default.conf
|
|
restartPolicy: Always
|
|
imagePullSecrets:
|
|
- name: gitlab-docker
|
|
...
|