-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathsonarqube.yaml
113 lines (113 loc) · 2.38 KB
/
sonarqube.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarqube
labels:
app: sonarqube
app.kubernetes.io/component: sonarqube
app.kubernetes.io/instance: sonarqube
app.kubernetes.io/name: sonarqube
app.kubernetes.io/part-of: sonarqube
spec:
replicas: 1
selector:
matchLabels:
app: sonarqube
name: sonarqube
template:
metadata:
labels:
app: sonarqube
name: sonarqube
spec:
containers:
- name: sonarqube
imagePullPolicy: Always
image: quay.io/siamaksade/sonarqube:8.3-community
ports:
- containerPort: 9000
protocol: TCP
volumeMounts:
- mountPath: /opt/sq/temp
name: sonarqube-temp
- mountPath: /opt/sq/conf
name: sonarqube-conf
- mountPath: /opt/sq/data
name: sonarqube-data
- mountPath: /opt/sq/extensions
name: sonarqube-extensions
- mountPath: /opt/sq/logs
name: sonarqube-logs
livenessProbe:
failureThreshold: 10
httpGet:
path: /
port: 9000
scheme: HTTP
initialDelaySeconds: 45
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 10
httpGet:
path: /
port: 9000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
cpu: "1"
memory: 4Gi
requests:
cpu: 200m
memory: 512Mi
volumes:
- name: sonarqube-temp
emptyDir: {}
- name: sonarqube-conf
emptyDir: {}
- name: sonarqube-data
emptyDir: {}
- name: sonarqube-extensions
emptyDir: {}
- name: sonarqube-logs
emptyDir: {}
---
apiVersion: v1
kind: Route
metadata:
labels:
app: sonarqube
name: sonarqube
spec:
port:
targetPort: 9000-tcp
tls:
termination: edge
to:
kind: Service
name: sonarqube
weight: 100
wildcardPolicy: None
---
apiVersion: v1
kind: Service
metadata:
labels:
app: sonarqube
name: sonarqube
spec:
ports:
- name: 9000-tcp
port: 9000
protocol: TCP
targetPort: 9000
selector:
app: sonarqube
name: sonarqube
type: ClusterIP