-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
52 lines (51 loc) · 1.12 KB
/
deployment.yaml
File metadata and controls
52 lines (51 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: k8snotifier
labels:
app: k8snotifier
spec:
selector:
matchLabels:
app: k8snotifier
replicas: 1
template:
metadata:
labels:
app: k8snotifier
spec:
containers:
- name: k8snotifier
image: k8snotifier:latest
resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 100m
memory: 512Mi
volumeMounts:
- name: gcp-pubsub-sa-key
mountPath: /etc/credentials
readOnly: true
envFrom:
- configMapRef:
name: k8snotifier-cm
volumes:
- name: "gcp-pubsub-sa-key"
secret:
secretName: "gcp-pubsub-sa-key"
items:
- key: gcp_pubsub_sa_key.json
path: gcp_pubsub_sa_key.json
---
apiVersion: v1
kind: ConfigMap
metadata:
name: k8snotifier-cm
data:
GCP_PROJECT_ID: <GCP_PROJECT_ID>
PUBSUB_SUBSCRIPTION_ID: <GCP_PUBSUB_SUB>
SLACK_WEBHOOK_URL: <SLACK_WEBHOOK_URL>
GOOGLE_APPLICATION_CREDENTIALS: /etc/credentials/gcp_pubsub_sa_key.json