puppetdb: unique per-pod command-queue directory #340
@@ -49,6 +49,10 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: puppetdb-config
|
name: puppetdb-config
|
||||||
env:
|
env:
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
- name: OPENVOXDB_POSTGRES_PASSWORD
|
- name: OPENVOXDB_POSTGRES_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
@@ -88,6 +92,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /opt/puppetlabs/server/data/puppetdb
|
- mountPath: /opt/puppetlabs/server/data/puppetdb
|
||||||
name: puppetdb-storage
|
name: puppetdb-storage
|
||||||
|
subPathExpr: $(POD_NAME)
|
||||||
- mountPath: /etc/puppetlabs/puppetdb/conf.d/read-database.conf
|
- mountPath: /etc/puppetlabs/puppetdb/conf.d/read-database.conf
|
||||||
name: puppetdb-read-database-conf
|
name: puppetdb-read-database-conf
|
||||||
subPath: read-database.conf
|
subPath: read-database.conf
|
||||||
@@ -99,6 +104,11 @@ spec:
|
|||||||
- -c
|
- -c
|
||||||
args:
|
args:
|
||||||
- mkdir -p /opt/puppetlabs/server/data/puppetdb/logs && chown 999:999 /opt/puppetlabs/server/data/puppetdb/logs
|
- mkdir -p /opt/puppetlabs/server/data/puppetdb/logs && chown 999:999 /opt/puppetlabs/server/data/puppetdb/logs
|
||||||
|
env:
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 20m
|
cpu: 20m
|
||||||
@@ -111,6 +121,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /opt/puppetlabs/server/data/puppetdb
|
- mountPath: /opt/puppetlabs/server/data/puppetdb
|
||||||
name: puppetdb-storage
|
name: puppetdb-storage
|
||||||
|
subPathExpr: $(POD_NAME)
|
||||||
|
|
||||||
- name: pgchecker
|
- name: pgchecker
|
||||||
image: docker.io/busybox:1.37
|
image: docker.io/busybox:1.37
|
||||||
|
|||||||
Reference in New Issue
Block a user