Skip to content

Commit 38dfea1

Browse files
committed
snappyTmp -> ephemeralTmp
1 parent ce93fd9 commit 38dfea1

File tree

5 files changed

+66
-61
lines changed

5 files changed

+66
-61
lines changed

charts/kpow-ce/templates/deployment.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ spec:
5656
- name: http
5757
containerPort: 3000
5858
protocol: TCP
59-
{{- if or .Values.volumeMounts .Values.snappyTmp.enabled }}
59+
{{- if or .Values.volumeMounts .Values.ephemeralTmp.enabled }}
6060
volumeMounts:
6161
{{- if .Values.volumeMounts }}
6262
{{- toYaml .Values.volumeMounts | nindent 12 }}
6363
{{- end }}
64-
{{- if .Values.snappyTmp.enabled }}
65-
- name: {{ .Values.snappyTmp.volumeMount.name | quote }}
66-
mountPath: {{ .Values.snappyTmp.volumeMount.mountPath | quote }}
64+
{{- if .Values.ephemeralTmp.enabled }}
65+
- name: {{ .Values.ephemeralTmp.volumeMount.name | quote }}
66+
mountPath: {{ .Values.ephemeralTmp.volumeMount.mountPath | quote }}
6767
{{- end }}
6868
{{- end }}
6969
readinessProbe:
@@ -92,17 +92,17 @@ spec:
9292
tolerations:
9393
{{- toYaml . | nindent 8 }}
9494
{{- end }}
95-
{{- if or .Values.volumes .Values.snappyTmp.enabled }}
95+
{{- if or .Values.volumes .Values.ephemeralTmp.enabled }}
9696
volumes:
9797
{{- if .Values.volumes }}
9898
{{- toYaml .Values.volumes | nindent 8 }}
9999
{{- end }}
100-
{{- if .Values.snappyTmp.enabled }}
101-
- name: {{ .Values.snappyTmp.volumeMount.name | quote }}
100+
{{- if .Values.ephemeralTmp.enabled }}
101+
- name: {{ .Values.ephemeralTmp.volumeMount.name | quote }}
102102
{{- /* Check if emptyDir config exists, otherwise provide a default empty one */}}
103-
{{- if .Values.snappyTmp.volume.emptyDir }}
103+
{{- if .Values.ephemeralTmp.volume.emptyDir }}
104104
emptyDir:
105-
{{- toYaml .Values.snappyTmp.volume.emptyDir | nindent 12 }}
105+
{{- toYaml .Values.ephemeralTmp.volume.emptyDir | nindent 12 }}
106106
{{- else }}
107107
emptyDir: {} # Default emptyDir if no specific config
108108
{{- end }}

charts/kpow-ce/values.yaml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,56 @@ image:
44
repository: factorhouse/kpow-ce
55
pullPolicy: IfNotPresent
66

7-
imagePullSecrets: []
7+
imagePullSecrets: [ ]
88
nameOverride: ""
99
fullnameOverride: ""
1010

11-
env: {}
11+
env: { }
1212
envFromConfigMap: null
1313
envFromSecret: null
14-
volumeMounts: []
14+
volumeMounts: [ ]
1515
# - name: rbac-config
1616
# mountPath: /path/to/rbac-config.yaml
1717
# subPath: rbac-config.yaml
18-
volumes: []
18+
volumes: [ ]
1919
# - name: rbac-config
2020
# configMap:
2121
# name: "my-kpow-ce-config"
2222

23-
snappyTmp:
24-
enabled: false # Sets up an emptyDir volume mount for Snappy compression. Enable this if you use Snappy compression and you have readOnly filesystem Pod policies.
23+
ephemeralTmp:
24+
# Sets up an emptyDir volume mount for Snappy compression and other features requiring /tmp access.
25+
# Enable this if you use Snappy compression and you have readOnly filesystem Pod policies.
26+
enabled: false
2527
volumeMount:
26-
name: "snappy-tmp"
27-
mountPath: "/opt/snappy-tmp"
28+
name: "fh-tmp"
29+
mountPath: "/opt/factorhouse/tmp"
2830
volume:
2931
emptyDir:
3032
medium: Memory # Optional: for better performance
3133
sizeLimit: "100Mi" # Configurable size
3234

3335
serviceAccount:
3436
create: true
35-
annotations: {}
37+
annotations: { }
3638
name: kpow-ce
3739

38-
podAnnotations: {}
40+
podAnnotations: { }
3941

40-
podSecurityContext: {}
42+
podSecurityContext: { }
4143

42-
securityContext: {}
44+
securityContext: { }
4345

4446
service:
4547
enabled: true
46-
annotations: {}
48+
annotations: { }
4749
type: ClusterIP
4850
port: 3000
4951

5052
ingress:
5153
enabled: false
52-
annotations: {}
53-
hosts: []
54-
tls: []
54+
annotations: { }
55+
hosts: [ ]
56+
tls: [ ]
5557
ingressClassName: ""
5658

5759
# We recommend running Kpow Community w/ Guaranteed QOS
@@ -71,10 +73,10 @@ autoscaling:
7173
targetCPUUtilizationPercentage: 85
7274
targetMemoryUtilizationPercentage: 85
7375

74-
nodeSelector: {}
76+
nodeSelector: { }
7577

76-
tolerations: []
78+
tolerations: [ ]
7779

78-
affinity: {}
80+
affinity: { }
7981

80-
labels: {}
82+
labels: { }

charts/kpow/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,12 @@ much more reliable operation.
309309

310310
#### Snappy compression in read-only filesystem
311311

312-
We preset an attribute for Snappy compression in read-only filesystems. It is disabled by default and can be enabled - modify the volume configuration if necessary.
312+
We preset an attribute for Snappy compression in read-only filesystems. It is disabled by default and can be enabled -
313+
modify the volume configuration if necessary.
313314

314315
```yaml
315-
snappyTmp:
316-
enabled: false # Set to true
316+
ephemeralTmp:
317+
enabled: true
317318
volume:
318319
emptyDir:
319320
medium: Memory # Optional: for better performance

charts/kpow/templates/deployment.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ spec:
5656
- name: http
5757
containerPort: 3000
5858
protocol: TCP
59-
{{- if or .Values.volumeMounts .Values.snappyTmp.enabled }}
59+
{{- if or .Values.volumeMounts .Values.ephemeralTmp.enabled }}
6060
volumeMounts:
6161
{{- if .Values.volumeMounts }}
6262
{{- toYaml .Values.volumeMounts | nindent 12 }}
6363
{{- end }}
64-
{{- if .Values.snappyTmp.enabled }}
65-
- name: {{ .Values.snappyTmp.volumeMount.name | quote }}
66-
mountPath: {{ .Values.snappyTmp.volumeMount.mountPath | quote }}
64+
{{- if .Values.ephemeralTmp.enabled }}
65+
- name: {{ .Values.ephemeralTmp.volumeMount.name | quote }}
66+
mountPath: {{ .Values.ephemeralTmp.volumeMount.mountPath | quote }}
6767
{{- end }}
6868
{{- end }}
6969
readinessProbe:
@@ -92,17 +92,17 @@ spec:
9292
tolerations:
9393
{{- toYaml . | nindent 8 }}
9494
{{- end }}
95-
{{- if or .Values.volumes .Values.snappyTmp.enabled }}
95+
{{- if or .Values.volumes .Values.ephemeralTmp.enabled }}
9696
volumes:
9797
{{- if .Values.volumes }}
9898
{{- toYaml .Values.volumes | nindent 8 }}
9999
{{- end }}
100-
{{- if .Values.snappyTmp.enabled }}
101-
- name: {{ .Values.snappyTmp.volumeMount.name | quote }}
100+
{{- if .Values.ephemeralTmp.enabled }}
101+
- name: {{ .Values.ephemeralTmp.volumeMount.name | quote }}
102102
{{- /* Check if emptyDir config exists, otherwise provide a default empty one */}}
103-
{{- if .Values.snappyTmp.volume.emptyDir }}
103+
{{- if .Values.ephemeralTmp.volume.emptyDir }}
104104
emptyDir:
105-
{{- toYaml .Values.snappyTmp.volume.emptyDir | nindent 12 }}
105+
{{- toYaml .Values.ephemeralTmp.volume.emptyDir | nindent 12 }}
106106
{{- else }}
107107
emptyDir: {} # Default emptyDir if no specific config
108108
{{- end }}

charts/kpow/values.yaml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,56 @@ image:
44
repository: factorhouse/kpow
55
pullPolicy: IfNotPresent
66

7-
imagePullSecrets: []
7+
imagePullSecrets: [ ]
88
nameOverride: ""
99
fullnameOverride: ""
1010

11-
env: {}
11+
env: { }
1212
envFromConfigMap: null
1313
envFromSecret: null
14-
volumeMounts: []
14+
volumeMounts: [ ]
1515
# - name: rbac-config
1616
# mountPath: /path/to/rbac-config.yaml
1717
# subPath: rbac-config.yaml
18-
volumes: []
18+
volumes: [ ]
1919
# - name: rbac-config
2020
# configMap:
2121
# name: "my-kpow-config"
2222

23-
snappyTmp:
24-
enabled: false # Sets up an emptyDir volume mount for Snappy compression. Enable this if you use Snappy compression and you have readOnly filesystem Pod policies.
23+
ephemeralTmp:
24+
# Sets up an emptyDir volume mount for Snappy compression and other features requiring /tmp access.
25+
# Enable this if you use Snappy compression and you have readOnly filesystem Pod policies.
26+
enabled: false
2527
volumeMount:
26-
name: "snappy-tmp"
27-
mountPath: "/opt/snappy-tmp"
28+
name: "fh-tmp"
29+
mountPath: "/opt/factorhouse/tmp"
2830
volume:
2931
emptyDir:
3032
medium: Memory # Optional: for better performance
3133
sizeLimit: "100Mi" # Configurable size
3234

3335
serviceAccount:
3436
create: true
35-
annotations: {}
37+
annotations: { }
3638
name: kpow
3739

38-
podAnnotations: {}
40+
podAnnotations: { }
3941

40-
podSecurityContext: {}
42+
podSecurityContext: { }
4143

42-
securityContext: {}
44+
securityContext: { }
4345

4446
service:
4547
enabled: true
46-
annotations: {}
48+
annotations: { }
4749
type: ClusterIP
4850
port: 3000
4951

5052
ingress:
5153
enabled: false
52-
annotations: {}
53-
hosts: []
54-
tls: []
54+
annotations: { }
55+
hosts: [ ]
56+
tls: [ ]
5557
ingressClassName: ""
5658

5759
# We recommend running Kpow w/ Guaranteed QOS
@@ -75,10 +77,10 @@ autoscaling:
7577
targetCPUUtilizationPercentage: 85
7678
targetMemoryUtilizationPercentage: 85
7779

78-
nodeSelector: {}
80+
nodeSelector: { }
7981

80-
tolerations: []
82+
tolerations: [ ]
8183

82-
affinity: {}
84+
affinity: { }
8385

84-
labels: {}
86+
labels: { }

0 commit comments

Comments
 (0)