Skip to content

Commit

Permalink
Merge pull request jfrog#90 from jfrog/mission-control-3.2.0
Browse files Browse the repository at this point in the history
Update Mission control version to 3.2.0
  • Loading branch information
rimusz authored Nov 5, 2018
2 parents db19373 + 44d6ea2 commit 78b8842
Show file tree
Hide file tree
Showing 10 changed files with 299 additions and 58 deletions.
4 changes: 4 additions & 0 deletions stable/mission-control/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# JFrog Mission-Control Chart Changelog
All changes to this chart will be documented in this file.

## [0.6.0] - Oct 18, 2018
* Updated Mission-Control version to 3.2.0
* This chart version (0.6.0) cannot be used to deploy older versions of Mission Control (less than or equal to 3.1.2)

## [0.5.2] - Oct 17, 2018
* Add Apache 2.0 license

Expand Down
4 changes: 2 additions & 2 deletions stable/mission-control/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
name: mission-control
description: A Helm chart for JFrog Mission Control
version: 0.5.2
appVersion: 3.1.2
version: 0.6.0
appVersion: 3.2.0
home: https://jfrog.com/mission-control/
icon: https://raw.githubusercontent.com/JFrogDev/artifactory-dcos/master/images/jfrog_med.png
keywords:
Expand Down
60 changes: 51 additions & 9 deletions stable/mission-control/templates/insight-executor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,59 @@ spec:
imagePullSecrets:
- name: {{ .Values.imagePullSecrets }}
{{- end }}
securityContext:
fsGroup: {{ .Values.uid }}
initContainers:
- name: "prepare-storage"
image: "{{ .Values.initContainerImage }}"
command:
- 'sh'
- '-c'
- >
mkdir -p {{ .Values.insightExecutor.persistence.mountPath }} ;
chown -R {{ .Values.uid }}:{{ .Values.uid }} {{ .Values.insightExecutor.persistence.mountPath }}
volumeMounts:
- name: insight-executor-data
mountPath: {{ .Values.insightExecutor.persistence.mountPath | quote }}
- name: "wait-for-db"
image: "{{ .Values.initContainerImage }}"
command:
- 'sh'
- '-c'
- >
until nc -z -w 2 {{ .Release.Name }}-mongodb 27017 && echo mongodb ok;
do sleep 2;
done;
sleep 10
containers:
- name: {{ .Values.insightExecutor.name }}
image: {{ .Values.insightExecutor.image }}:{{ default .Chart.AppVersion .Values.insightExecutor.version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
env:
- name: CORE_URL
- name: JFIS_URL
value: 'http://{{ template "insight-server.fullname" . }}:{{ .Values.insightServer.internalHttpPort }}'
- name: JFI_HOME
value: '/var/cloudbox'
- name: JFI_HOME_EXECUTOR
value: '/var/cloudbox/executor'
- name: JFEX_LOGS
value: '{{ .Values.insightExecutor.home }}/{{ .Values.insightExecutor.name }}/logs'
- name: JFEX_APP_NAME
value: '{{ .Values.insightExecutor.name }}'
- name: MONGO_URL
value: '{{ .Release.Name }}-mongodb:27017'
- name: MONGODB_USERNAME
value: '{{ .Values.mongodb.db.insightUser }}'
- name: MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "mission-control.fullname" . }}-mongodb-cred
key: insightPassword
- name: MONGODB_ADMIN_USERNAME
value: '{{ .Values.mongodb.db.adminUser }}'
- name: MONGODB_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "mission-control.fullname" . }}-mongodb-cred
key: adminPassword
- name: JFMC_EXECUTOR_MONGO_DB
value: '{{ .Values.mongodb.db.insightExecutorDb }}'
- name: JFMC_EXTRA_JAVA_OPTS
value: "
{{- if .Values.insightExecutor.javaOpts.other }}
Expand All @@ -59,14 +101,14 @@ spec:
livenessProbe:
httpGet:
path: /executorservice/api
port: 8080
initialDelaySeconds: 180
port: {{ .Values.insightExecutor.internalPort }}
initialDelaySeconds: 600
periodSeconds: 10
readinessProbe:
httpGet:
path: /executorservice/api
port: 8080
initialDelaySeconds: 180
port: {{ .Values.insightExecutor.internalPort }}
initialDelaySeconds: 600
periodSeconds: 10
resources:
{{ toYaml .Values.insightExecutor.resources | indent 10 }}
Expand Down
50 changes: 38 additions & 12 deletions stable/mission-control/templates/insight-scheduler-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,21 @@ spec:
imagePullSecrets:
- name: {{ .Values.imagePullSecrets }}
{{- end }}
securityContext:
fsGroup: {{ .Values.uid }}
initContainers:
- name: init-data
- name: "prepare-storage"
image: "{{ .Values.initContainerImage }}"
command:
- 'sh'
- '-c'
- >
mkdir -p {{ .Values.insightScheduler.persistence.mountPath }} ;
chown -R {{ .Values.uid }}:{{ .Values.uid }} {{ .Values.insightScheduler.persistence.mountPath }}
volumeMounts:
- name: insight-scheduler-data
mountPath: {{ .Values.insightScheduler.persistence.mountPath | quote }}
- name: "wait-for-db"
image: "{{ .Values.initContainerImage }}"
command:
- 'sh'
Expand All @@ -44,12 +57,10 @@ spec:
image: {{ .Values.insightScheduler.image }}:{{ default .Chart.AppVersion .Values.insightScheduler.version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
env:
- name: CORE_URL
- name: JFIS_URL
value: 'http://{{ template "insight-server.fullname" . }}:{{ .Values.insightServer.internalHttpPort }}'
- name: JFI_HOME
value: '/var/cloudbox'
- name: JFI_HOME_SCHEDULER
value: '/var/cloudbox/scheduler'
- name: JFMC_URL
value: 'http://{{ template "mission-control.fullname" . }}:{{ .Values.missionControl.internalPort }}'
- name: MONGO_URL
value: '{{ .Release.Name }}-mongodb:27017'
- name: MONGODB_USERNAME
Expand Down Expand Up @@ -79,20 +90,27 @@ spec:
{{- if .Values.insightScheduler.javaOpts.xmx }}
-Xmx{{ .Values.insightScheduler.javaOpts.xmx }}
{{- end}}
"
"
- name: JFSC_LOGS
value: '{{ .Values.insightScheduler.home }}/{{ .Values.insightScheduler.name }}/logs'
- name: JFSC_APP_NAME
value: '{{ .Values.insightScheduler.name }}'
volumeMounts:
- name: insight-scheduler-data
mountPath: {{ .Values.insightScheduler.persistence.mountPath | quote }}
ports:
- containerPort: {{ .Values.insightScheduler.internalPort }}
protocol: TCP
livenessProbe:
httpGet:
path: /schedulerservice/api/status
port: 8080
path: /api/status
port: {{ .Values.insightScheduler.internalPort }}
initialDelaySeconds: 120
periodSeconds: 10
readinessProbe:
httpGet:
path: /schedulerservice/api/status
port: 8080
path: /api/status
port: {{ .Values.insightScheduler.internalPort }}
initialDelaySeconds: 120
periodSeconds: 10
resources:
Expand All @@ -108,4 +126,12 @@ spec:
{{- with .Values.insightScheduler.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- end }}
volumes:
- name: insight-scheduler-data
{{- if .Values.insightScheduler.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ if .Values.insightScheduler.persistence.existingClaim }}{{ .Values.insightScheduler.persistence.existingClaim }}{{ else }}{{ template "insight-scheduler.fullname" . }}{{ end }}
{{- else }}
emptyDir: {}
{{- end }}
24 changes: 24 additions & 0 deletions stable/mission-control/templates/insight-scheduler-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if and .Values.insightScheduler.persistence.enabled (not .Values.insightScheduler.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ template "insight-scheduler.fullname" . }}
labels:
app: {{ template "mission-control.name" . }}
chart: {{ template "mission-control.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
accessModes:
- {{ .Values.insightScheduler.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.insightScheduler.persistence.size }}
{{- if .Values.insightScheduler.persistence.storageClass }}
{{- if (eq "-" .Values.insightScheduler.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.insightScheduler.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
79 changes: 55 additions & 24 deletions stable/mission-control/templates/insight-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,21 @@ spec:
imagePullSecrets:
- name: {{ .Values.imagePullSecrets }}
{{- end }}
securityContext:
fsGroup: {{ .Values.uid }}
initContainers:
- name: init-data
- name: "prepare-storage"
image: "{{ .Values.initContainerImage }}"
command:
- 'sh'
- '-c'
- >
mkdir -p {{ .Values.insightServer.persistence.mountPath }} {{ .Values.insightServer.home }}/{{ .Values.insightServer.name }}/_MASTER_/data/contexts/security ;
chown -R {{ .Values.uid }}:{{ .Values.uid }} {{ .Values.insightServer.persistence.mountPath }}
volumeMounts:
- name: insight-server-data
mountPath: {{ .Values.insightServer.persistence.mountPath | quote }}
- name: "wait-for-db"
image: "{{ .Values.initContainerImage }}"
command:
- 'sh'
Expand All @@ -38,24 +51,31 @@ spec:
nc -z -w 2 {{ .Release.Name }}-elasticsearch 9200 && echo elasticsearch ok;
do sleep 2;
done;
sleep 10
sleep 40
containers:
- name: {{ .Values.insightServer.name }}
image: {{ .Values.insightServer.image }}:{{ default .Chart.AppVersion .Values.insightServer.version }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
env:
- name: CORE_URL
- name: JFIS_URL
value: 'http://{{ template "insight-server.fullname" . }}:{{ .Values.insightServer.internalHttpPort }}'
- name: EXECUTOR_URL
value: 'http://{{ template "insight-executor.fullname" . }}:{{ .Values.insightExecutor.internalPort }}/executorservice'
- name: SCHEDULER_URL
value: 'http://{{ template "insight-scheduler.fullname" . }}:{{ .Values.insightScheduler.internalPort }}/schedulerservice'
- name: JFEX_URL
value: 'http://{{ template "insight-executor.fullname" . }}:{{ .Values.insightExecutor.internalPort }}'
- name: JFSC_URL
value: 'http://{{ template "insight-scheduler.fullname" . }}:{{ .Values.insightScheduler.internalPort }}'
- name: JFIS_LOGS
value: "{{ .Values.insightServer.home }}/{{ .Values.insightServer.name }}/logs"
- name: JFIS_APP_NAME
value: "{{ .Values.insightServer.name }}"
- name: MONGO_URL
value: '{{ .Release.Name }}-mongodb:27017'
- name: MONGODB_USERNAME
value: '{{ .Values.mongodb.db.insightUser }}'
- name: MONGODB_PASSWORD
value: '{{ .Values.mongodb.db.insightPassword }}'
valueFrom:
secretKeyRef:
name: {{ template "mission-control.fullname" . }}-mongodb-cred
key: insightPassword
- name: MONGODB_ADMIN_USERNAME
value: '{{ .Values.mongodb.db.adminUser }}'
- name: MONGODB_ADMIN_PASSWORD
Expand All @@ -67,6 +87,14 @@ spec:
value: 'http://{{ template "mission-control.fullname" . }}:{{ .Values.missionControl.internalPort }}'
- name: ELASTIC_SEARCH_URL
value: 'http://{{ .Release.Name }}-elasticsearch:9200'
- name: ELASTIC_SEARCH_WRITE_URL
value: 'http://{{ .Release.Name }}-elasticsearch:9200'
- name: ELASTIC_SEARCH_READ_URL
value: 'http://{{ .Release.Name }}-elasticsearch:9200'
- name: ELASTIC_LB_WRITE_URL
value: ''
- name: ELASTIC_LB_READ_URL
value: ''
- name: ELASTIC_CLUSTER_NAME
value: '{{ .Values.elasticsearch.env.clusterName }}'
- name: ELASTIC_SEARCH_USERNAME
Expand All @@ -76,18 +104,12 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-elasticsearch
key: esPassword
- name: ELASTIC_COMMUNICATION_NODE_URL
value: '{{ .Release.Name }}-elasticsearch:9300'
- name: JFI_HOME
value: '/var/cloudbox'
- name: JFI_HOME_CORE
value: '/var/cloudbox/core'
- name: JFMC_MISSION_CONTROL_CERT
value: "/var/cloudbox/core/_MASTER_/data/contexts/security/jfmc.crt"
value: "{{ .Values.insightServer.home }}/{{ .Values.insightServer.name }}/_MASTER_/data/contexts/security/jfmc.crt"
- name: JFMC_INSIGHT_SERVER_CERT
value: "/var/cloudbox/core/_MASTER_/data/contexts/security/insight.crt"
value: "{{ .Values.insightServer.home }}/{{ .Values.insightServer.name }}/_MASTER_/data/contexts/security/insight.crt"
- name: JFMC_INSIGHT_SERVER_KEY
value: "/var/cloudbox/core/_MASTER_/data/contexts/security/insight.key"
value: "{{ .Values.insightServer.home }}/{{ .Values.insightServer.name }}/_MASTER_/data/contexts/security/insight.key"
- name: JFMC_INSIGHT_SERVER_PORT
value: "{{ .Values.insightServer.internalHttpPort }}"
- name: JFMC_INSIGHT_SERVER_SSL_PORT
Expand All @@ -98,26 +120,28 @@ spec:
- containerPort: {{ .Values.insightServer.internalHttpsPort }}
protocol: TCP
volumeMounts:
- name: insight-server-data
mountPath: {{ .Values.insightServer.persistence.mountPath | quote }}
- name: mission-control-certs
mountPath: /var/cloudbox/core/_MASTER_/data/contexts/security/insight.key
mountPath: "{{ .Values.insightServer.home }}/{{ .Values.insightServer.name }}/_MASTER_/data/contexts/security/insight.key"
subPath: insight.key
- name: mission-control-certs
mountPath: /var/cloudbox/core/_MASTER_/data/contexts/security/insight.crt
mountPath: "{{ .Values.insightServer.home }}/{{ .Values.insightServer.name }}/_MASTER_/data/contexts/security/insight.crt"
subPath: insight.crt
- name: mission-control-certs
mountPath: /var/cloudbox/core/_MASTER_/data/contexts/security/jfmc.crt
mountPath: "{{ .Values.insightServer.home }}/{{ .Values.insightServer.name }}/_MASTER_/data/contexts/security/jfmc.crt"
subPath: jfmc.crt
livenessProbe:
httpGet:
path: /api/status
port: 8082
initialDelaySeconds: 300
port: {{ .Values.insightServer.internalHttpPort }}
initialDelaySeconds: 600
periodSeconds: 10
readinessProbe:
httpGet:
path: /api/status
port: 8082
initialDelaySeconds: 300
port: {{ .Values.insightServer.internalHttpPort }}
initialDelaySeconds: 600
periodSeconds: 10
resources:
{{ toYaml .Values.insightServer.resources | indent 10 }}
Expand All @@ -141,3 +165,10 @@ spec:
{{- else }}
secretName: {{ template "mission-control.fullname" . }}-certs
{{- end }}
- name: insight-server-data
{{- if .Values.insightServer.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ if .Values.insightServer.persistence.existingClaim }}{{ .Values.insightServer.persistence.existingClaim }}{{ else }}{{ template "insight-server.fullname" . }}{{ end }}
{{- else }}
emptyDir: {}
{{- end }}
24 changes: 24 additions & 0 deletions stable/mission-control/templates/insight-server-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if and .Values.insightServer.persistence.enabled (not .Values.insightServer.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ template "insight-server.fullname" . }}
labels:
app: {{ template "mission-control.name" . }}
chart: {{ template "mission-control.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
accessModes:
- {{ .Values.insightServer.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.insightServer.persistence.size }}
{{- if .Values.insightServer.persistence.storageClass }}
{{- if (eq "-" .Values.insightServer.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.insightServer.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
Loading

0 comments on commit 78b8842

Please sign in to comment.