[stable/sonarqube] Update default service type to ClusterIP (#17116)

* Fix Sonaqube ELB creation on AWS

Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>

* Change Sonarqube default service type to ClusterIP

Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>

* Update sonarqube chart version

Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>

* Update sonarqube chart version

Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
This commit is contained in:
Steve Hipwell
2019-10-09 06:07:50 -07:00
committed by Kubernetes Prow Robot
parent 45b773755e
commit 70ab53ef4b
5 changed files with 18 additions and 15 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
apiVersion: v1
name: sonarqube
description: Sonarqube is an open sourced code quality scanning tool
version: 2.3.0
appVersion: 7.9
version: 3.0.0
appVersion: 7.9.1
keywords:
- coverage
- security
+5 -3
View File
@@ -42,7 +42,7 @@ The following table lists the configurable parameters of the Sonarqube chart and
| `replicaCount` | Number of replicas deployed | `1` |
| `deploymentStrategy` | Deployment strategy | `{}` |
| `image.repository` | image repository | `sonarqube` |
| `image.tag` | `sonarqube` image tag. | `7.9-community` |
| `image.tag` | `sonarqube` image tag. | `7.9.1-community` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecret` | imagePullSecret to use for private repository | |
| `command` | command to run in the container | `nil` (need to be set prior to 6.7.6, and 7.4) |
@@ -54,10 +54,12 @@ The following table lists the configurable parameters of the Sonarqube chart and
| `ingress.tls` | Ingress secrets for TLS certificates | `[]` |
| `livenessProbe.sonarWebContext` | SonarQube web context for livenessProbe | / |
| `readinessProbe.sonarWebContext` | SonarQube web context for readinessProbe | / |
| `service.type` | Kubernetes service type | `LoadBalancer` |
| `service.type` | Kubernetes service type | `ClusterIP` |
| `service.externalPort` | Kubernetes service port | `9000` |
| `service.internalPort` | Kubernetes container port | `9000` |
| `service.labels` | Kubernetes service labels | None |
| `service.annotations` | Kubernetes service annotations | None |
| `service.loadBalancerSourceRanges` | Kubernetes service LB Allowed inbound IP addresses | 0.0.0.0/0 |
| `service.loadBalancerSourceRanges` | Kubernetes service LB Allowed inbound IP addresses | None |
| `service.loadBalancerIP` | Kubernetes service LB Optional fixed external IP | None |
| `persistence.enabled` | Flag for enabling persistent storage | false |
| `persistence.annotations` | Kubernetes pvc annotations | `{}` |
+5 -3
View File
@@ -91,7 +91,9 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.internalPort }}
- name: http
containerPort: {{ .Values.service.internalPort }}
protocol: TCP
{{- if .Values.plugins.install }}
command:
- /tmp/scripts/copy_plugins.sh
@@ -126,13 +128,13 @@ spec:
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.sonarWebContext }}sessions/new
port: {{ .Values.service.internalPort }}
port: http
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
readinessProbe:
httpGet:
path: {{ .Values.readinessProbe.sonarWebContext }}sessions/new
port: {{ .Values.service.internalPort }}
port: http
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
+2 -2
View File
@@ -20,9 +20,9 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
targetPort: http
protocol: TCP
name: {{ .Values.service.name }}
name: http
selector:
app: {{ template "sonarqube.name" . }}
release: {{ .Release.Name }}
+4 -5
View File
@@ -8,7 +8,7 @@ deploymentStrategy: {}
image:
repository: sonarqube
tag: 7.9-community
tag: 7.9.1-community
# If using a private repository, the name of the imagePullSecret to use
# pullSecret: my-repo-secret
@@ -17,16 +17,15 @@ securityContext:
fsGroup: 999
service:
name: sonarqube
type: LoadBalancer
type: ClusterIP
externalPort: 9000
internalPort: 9000
labels:
annotations: {}
# May be used in example for internal load balancing in GCP:
# cloud.google.com/load-balancer-type: Internal
loadBalancerSourceRanges:
- 0.0.0.0/0
# loadBalancerSourceRanges:
# - 0.0.0.0/0
# loadBalancerIP: 1.2.3.4
ingress:
enabled: false