-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrr-auth-deployment.yaml
46 lines (46 loc) · 1017 Bytes
/
rr-auth-deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: rr-auth
labels:
app: rr-auth
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
prometheus.io/port: "8080"
spec:
replicas: 2
selector:
matchLabels:
app: rr-auth
template:
metadata:
labels:
app: rr-auth
spec:
containers:
- name: rr-auth
image: rr-auth:latest
imagePullPolicy: Never
ports:
- containerPort: 5000
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
envFrom:
- configMapRef:
name: rr-auth-config
- secretRef:
name: rr-auth-secret
volumeMounts:
- name: gcloud-credentials
mountPath: /etc/gcloud/
readOnly: true
volumes:
- name: gcloud-credentials
secret:
secretName: rr-auth-secret