-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsonar.yml
68 lines (68 loc) · 1.44 KB
/
sonar.yml
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: sonarqube
name: sonarqube
spec:
replicas: 1
selector:
matchLabels:
app: sonarqube
strategy: {}
template:
metadata:
labels:
app: sonarqube
spec:
containers:
- image: 10.10.150.105/myapp/sonarqube:7.6-community
name: sonarqube
ports:
- containerPort: 9000
env:
- name: SONARQUBE_JDBC_USERNAME
value: "postgres"
- name: SONARQUBE_JDBC_PASSWORD
value: "dangerous"
- name: SONARQUBE_JDBC_URL
value: "jdbc:postgresql://mysql:3306/sonardb?useUnicode=true&characterEncoding=utf8&useSSL=false"
livenessProbe:
httpGet:
path: /sessions/new
port: 9000
initialDelaySeconds: 60
periodSeconds: 30
readinessProbe:
httpGet:
path: /sessions/new
port: 9000
initialDelaySeconds: 60
periodSeconds: 30
failureThreshold: 6
resources:
limits:
cpu: 1000m
memory: 1048Mi
requests:
cpu: 1000m
memory: 1048Mi
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: sonarqube
labels:
app: sonarqube
spec:
type: NodePort
ports:
- name: sonarqube
port: 9000
targetPort: 9000
protocol: TCP
selector:
app: sonarqube