Skip to content

Commit c8033d2

Browse files
committed
tmp vol for obsloctap
1 parent 97312af commit c8033d2

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

applications/obsloctap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ Publish observing schedule
2323
| consumekafka.nfsMountpoint | list | `[]` | NFS mountpoints for base since no PVC |
2424
| consumekafka.pvcMountpoint | list | `[]` | PVC claims for USDF in USDF values |
2525
| consumekafka.replicaCount | int | `1` | |
26-
| environment | string | `nil` | Environment variables (e.g. butler configuration/auth parms) for panel |
2726
| global.host | string | Set by Argo CD | Host name for ingress |
2827
| global.vaultSecretsPath | string | Set by Argo CD | Base path for Vault secrets |
2928
| ingress.annotations | object | `{}` | Additional annotations to add to the ingress |
3029
| kafka.bootstrap | string | `"sasquatch-kafka-bootstrap.sasquatch:9092"` | Kafka bootstrap server |
3130
| kafka.group_id | string | `"obsloctap-consumer"` | Name of Kafka consumer group |
3231
| kafka.schema_url | string | `"http://sasquatch-schema-registry-remote.sasquatch:8081"` | Kafka Avro schema server URL |
3332
| kafka.username | string | `"obsloctap"` | Username for SASL_PLAIN authentication |
33+
| obsloctap.environment.MPLCONFIGDIR | string | `"/tmp"` | |
3434
| obsloctap.image.pullPolicy | string | `"IfNotPresent"` | Pull policy for the obsloctap image |
3535
| obsloctap.image.repository | string | `"ghcr.io/lsst-dm/obsloctap"` | obsloctap image to use |
3636
| obsloctap.image.tag | string | The appVersion of the chart | Tag of image to use |

applications/obsloctap/templates/obsloctap-deployment.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ spec:
2828
volumes:
2929
- name: "cache-dir"
3030
emptyDir: {}
31-
- name: "tmp"
32-
emptyDir: {}
33-
# Have to fix permissions on the pgpass file.
31+
- name: "tmp-volume"
32+
emptyDir:
33+
sizeLimit: 500Mi
3434
# init container pattern borrowed from vo-cutouts.
3535
containers:
3636
- name: {{ .Chart.Name }}
@@ -53,6 +53,9 @@ spec:
5353
resources:
5454
{{- toYaml .Values.resources | nindent 12 }}
5555

56+
volumeMounts:
57+
- name: "tmp-volume"
58+
mountPath: "/tmp"
5659
env:
5760
- name: "LOG_CONFIG"
5861
value: "{{ .Values.obsloctap.logLevel }}"
@@ -78,11 +81,11 @@ spec:
7881
key: "password"
7982
- name: "database_schema"
8083
value: "{{ .Values.config.database_schema }}"
81-
82-
{{- range $key, $value := .Values.environment }}
84+
{{- range $key, $value := .Values.obsloctap.environment }}
8385
- name: {{ $key | quote }}
8486
value: {{ $value | quote }}
8587
{{- end }}
88+
8689
{{- with .Values.nodeSelector }}
8790
nodeSelector:
8891
{{- toYaml . | nindent 8 }}

applications/obsloctap/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ obsloctap:
1010
# @default -- The appVersion of the chart
1111
tag: ""
1212
logLevel: INFO
13+
environment:
14+
MPLCONFIGDIR: "/tmp"
1315

1416
consumekafka:
1517
replicaCount: 1
@@ -36,9 +38,6 @@ rubinsim:
3638
AWS_SHARED_CREDENTIALS_FILE: "/home/worker/.lsst/aws-credentials.ini"
3739
S3_ENDPOINT_URL: "https://s3dfrgw.slac.stanford.edu"
3840

39-
# -- Environment variables (e.g. butler configuration/auth parms) for panel
40-
environment:
41-
4241

4342
ingress:
4443
# -- Additional annotations to add to the ingress

0 commit comments

Comments
 (0)