fix: permissions of clickhouse job
This commit is contained in:
parent
54049ee28a
commit
5e53a77d3f
@ -9,6 +9,9 @@ spec:
|
||||
template:
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
containers:
|
||||
- name: cairn-clickhouse
|
||||
image: {{ CAIRN_CLICKHOUSE_DOCKER_IMAGE }}
|
||||
@ -18,6 +21,8 @@ spec:
|
||||
subPath: auth.json
|
||||
- mountPath: /etc/clickhouse-server/migrations.d
|
||||
name: migrations
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
volumes:
|
||||
- name: clickhouse-auth
|
||||
configMap:
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
cairn-clickhouse-job:
|
||||
image: {{ CAIRN_CLICKHOUSE_DOCKER_IMAGE }}
|
||||
user: "1000:1000"
|
||||
depends_on: {{ [("cairn-clickhouse", CAIRN_RUN_CLICKHOUSE)]|list_if }}
|
||||
volumes:
|
||||
- ../plugins/cairn/apps/clickhouse/auth.json:/scripts/clickhouse-auth.json:ro
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user