Adds downwardAPI to the cluster-deployment manifest
Allows the database pod to expose information about itself to containers running
in the Pod.
{
"mountPath": "/crunchyadm",
"name": "crunchyadm"
+ },
+ {
+ "mountPath": "/etc/podinfo",
+ "name": "podinfo"
}
{{.TablespaceVolumeMounts}}
],
}
]
}
+ },
+ {
+ "name": "podinfo",
+ "downwardAPI": {
+ "defaultMode": 420,
+ "items": [
+ {
+ "path": "cpu_limit",
+ "resourceFieldRef": {
+ "containerName": "database",
+ "divisor": "1m",
+ "resource": "limits.cpu"
+ }
+ },
+ {
+ "path": "cpu_request",
+ "resourceFieldRef": {
+ "containerName": "database",
+ "divisor": "1m",
+ "resource": "requests.cpu"
+ }
+ },
+ {
+ "path": "mem_limit",
+ "resourceFieldRef": {
+ "containerName": "database",
+ "resource": "limits.memory"
+ }
+ },
+ {
+ "path": "mem_request",
+ "resourceFieldRef": {
+ "containerName": "database",
+ "resource": "requests.memory"
+ }
+ },
+ {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.labels"
+ },
+ "path": "labels"
+ },
+ {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.annotations"
+ },
+ "path": "annotations"
+ }
+ ]
+ }
}
{{.TablespaceVolumes}}
],
