-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: modified environment variables for monitor service (#36)
* feat: added monitor container in plane-enterprise * chore: bumped version of plane ee helm --------- Co-authored-by: Manish Gupta <[email protected]> Co-authored-by: Akshat Jain <[email protected]>
- Loading branch information
1 parent
1cacda9
commit e4b5f79
Showing
9 changed files
with
155 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Plane CE Helm Chart | ||
|
||
## Pre-requisite | ||
|
||
- A working Kubernetes cluster | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
charts/plane-enterprise/templates/config-secrets/monitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ .Release.Name }}-monitor-vars | ||
data: | ||
PRIME_HOST: {{ .Values.license.licenseServer | quote }} | ||
MACHINE_SIGNATURE: {{ include "hashString" . | quote }} | ||
APP_DOMAIN: {{ .Values.license.licenseDomain | quote }} | ||
APP_VERSION: {{ .Values.planeVersion | quote }} | ||
DEPLOY_PLATFORM: "KUBERNETES" | ||
API_URL: "http://{{ .Release.Name }}-api.{{ .Release.Namespace }}.svc.cluster.local:8000/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
charts/plane-enterprise/templates/workloads/monitor.stateful.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ .Release.Name }}-monitor | ||
labels: | ||
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-monitor | ||
spec: | ||
{{- if not .Values.services.monitor.assign_cluster_ip }} | ||
clusterIP: None | ||
{{- end }} | ||
ports: | ||
- name: monitor-80 | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 80 | ||
selector: | ||
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-monitor | ||
--- | ||
|
||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ .Release.Name }}-monitor-wl | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-monitor | ||
serviceName: {{ .Release.Name }}-monitor | ||
template: | ||
metadata: | ||
labels: | ||
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-monitor | ||
spec: | ||
containers: | ||
- image: {{ .Values.services.monitor.image | default "registry.plane.tools/plane/monitor-enterprise" }}:{{ .Values.planeVersion }} | ||
imagePullPolicy: Always | ||
name: {{ .Release.Name }}-monitor | ||
stdin: true | ||
tty: true | ||
resources: | ||
requests: | ||
memory: "50Mi" | ||
cpu: "50m" | ||
limits: | ||
memory: {{ .Values.services.monitor.memoryLimit | default "1000Mi" | quote }} | ||
cpu: {{ .Values.services.monitor.cpuLimit | default "500m" | quote}} | ||
envFrom: | ||
- configMapRef: | ||
name: {{ .Release.Name }}-monitor-vars | ||
optional: false | ||
volumeMounts: | ||
- mountPath: /app | ||
name: pvc-{{ .Release.Name }}-monitor-vol | ||
subPath: '' | ||
serviceAccount: {{ .Release.Name }}-srv-account | ||
serviceAccountName: {{ .Release.Name }}-srv-account | ||
volumeClaimTemplates: | ||
- apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
creationTimestamp: null | ||
namespace: {{ .Release.Namespace }} | ||
name: pvc-{{ .Release.Name }}-monitor-vol | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: {{ .Values.services.monitor.volumeSize | default "100Mi" | quote }} | ||
storageClassName: {{ .Values.env.storageClass | quote }} | ||
volumeMode: Filesystem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters