forked from pyrra-dev/pyrra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyrra-apiDeployment.yaml
41 lines (41 loc) · 1.06 KB
/
pyrra-apiDeployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: api
app.kubernetes.io/name: pyrra
app.kubernetes.io/version: 0.7.5
name: pyrra-api
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: api
app.kubernetes.io/name: pyrra
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app.kubernetes.io/component: api
app.kubernetes.io/name: pyrra
app.kubernetes.io/version: 0.7.5
spec:
containers:
- args:
- api
- --api-url=http://pyrra-kubernetes.monitoring.svc.cluster.local:9444
- --prometheus-url=http://prometheus-k8s.monitoring.svc.cluster.local:9090
image: ghcr.io/pyrra-dev/pyrra:v0.7.5
name: pyrra
ports:
- containerPort: 9099
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: pyrra-api