Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion charts/collab/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ spec:
- name: codetogether-runtime
emptyDir: {}
- name: codetogether-tmp
emptyDir: {}
emptyDir:
medium: Memory
{{- else if .Values.favicon.enabled }}
volumes:
- name: favicon-volume
Expand Down
6 changes: 3 additions & 3 deletions charts/collab/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@ serviceAccount:

podAnnotations: {}

securityContext: {} #defaults to
securityContext: {} #defaults
# capabilities:
# drop:
# - ALL
# runAsNonRoot: true
# readOnlyRootFilesystem: true # enable for read-only setup
# runAsUser: 0 # Use '0' for root user for read-only setup
# runAsNonRoot: true
# runAsUser: 0

readinessProbe:
initialDelaySeconds: 60
Expand Down
55 changes: 24 additions & 31 deletions charts/intel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ spec:
imagePullSecrets:
- name: {{ include "codetogether.fullname" . }}-pull-secret
{{- end }}
{{- if .Values.readOnlyMode.enabled }}
initContainers:
- name: prepare-ro
image: busybox:latest
securityContext:
runAsUser: 0
command: ["sh", "-lc", "mkdir -p /mnt/volatile/var-log-nginx /mnt/volatile/var-cache-nginx /mnt/var/log-codetogether || true"]
volumeMounts:
- name: volatile
mountPath: /mnt/volatile
{{- end }}
serviceAccountName: {{ include "codetogether.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
Expand Down Expand Up @@ -110,6 +99,7 @@ spec:
key: apiKey
{{- end }}
{{- end }}
{{- if .Values.securityContext.readOnlyRootFilesystem }}
volumeMounts:
- name: properties-volume
mountPath: /opt/codetogether/runtime/cthq.properties
Expand All @@ -119,20 +109,26 @@ spec:
mountPath: /etc/ssl/certs/java/cacerts
subPath: cacerts
{{- end }}
{{- if .Values.readOnlyMode.enabled }}
- name: volatile
mountPath: /run/volatile
- name: run
mountPath: /run
- name: tmp
mountPath: /tmp
- name: volatile
mountPath: /var/log/nginx
subPath: var-log-nginx
- name: volatile
mountPath: /var/cache/nginx
subPath: var-cache-nginx
# Read-only root FS mounts
- mountPath: /run
name: codetogether-runtime
- mountPath: /tmp
name: codetogether-tmp
- mountPath: /var/log/nginx
name: codetogether-runtime
- mountPath: /var/cache/nginx
name: codetogether-runtime
{{- else }}
volumeMounts:
- name: properties-volume
mountPath: /opt/codetogether/runtime/cthq.properties
subPath: cthq.properties
{{- if .Values.java.customCacerts.enabled }}
- name: java-cacerts
mountPath: /etc/ssl/certs/java/cacerts
subPath: cacerts
{{- end }}
{{- end }}
ports:
- name: http
containerPort: 1080
Expand Down Expand Up @@ -181,16 +177,13 @@ spec:
secret:
secretName: {{ .Values.java.customCacerts.cacertsSecretName }}
{{- end }}
{{- if .Values.readOnlyMode.enabled }}
- name: volatile
{{- if .Values.securityContext.readOnlyRootFilesystem }}
- name: codetogether-runtime
emptyDir: {}
- name: run
- name: codetogether-tmp
emptyDir:
medium: Memory
- name: tmp
emptyDir:
medium: Memory
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
10 changes: 3 additions & 7 deletions charts/intel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,8 @@ securityContext: {} #defaults to
# drop:
# - ALL
#readOnlyRootFilesystem: true # enable for read-only setup
#runAsUser: 0 # Use '0' for root user for read-only setup
# runAsNonRoot: true
# runAsUser: 1000
# runAsNonRoot: true # false for non-root user
# runAsUser: 0

ai:
enabled: false
Expand Down Expand Up @@ -180,7 +179,4 @@ tolerations: []

affinity: {}

replicaCount: 1

readOnlyMode:
enabled: false # Set to 'true' to enable read-only mode
replicaCount: 1
Loading