diff --git a/roles/cmoa_install/files/05-imxc/templates/cmoa-kube-exporter.yaml b/roles/cmoa_install/files/05-imxc/templates/cmoa-kube-exporter.yaml new file mode 100644 index 0000000..3b5047f --- /dev/null +++ b/roles/cmoa_install/files/05-imxc/templates/cmoa-kube-exporter.yaml @@ -0,0 +1,28 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: cmoa-pod-exporter + name: cmoa-pod-exporter + namespace: imxc +spec: + replicas: 1 + selector: + matchLabels: + app: cmoa-pod-exporter + template: + metadata: + labels: + app: cmoa-pod-exporter + spec: + containers: + - image: {{ .Values.global.IMXC_IN_REGISTRY }}/cmoa-pod-exporter:{{ .Values.global.KUBE_EXPORTER_VERSION }} + name: cmoa-pod-exporter + ports: + - containerPort: 8080 + livenessProbe: + httpGet: + path: /healthz + port: 8080 + initialDelaySeconds: 5 + periodSeconds: 5 diff --git a/roles/cmoa_install/files/05-imxc/values.yaml b/roles/cmoa_install/files/05-imxc/values.yaml index fd3afcf..97c0618 100755 --- a/roles/cmoa_install/files/05-imxc/values.yaml +++ b/roles/cmoa_install/files/05-imxc/values.yaml @@ -122,6 +122,7 @@ global: KUBE_INFO_FLAT_VERSION: rel0.0.0 KUBE_INFO_BATCH_VERSION: rel0.0.0 KUBE_INFO_CONNECTOR_VERSION: rel0.0.0 + KUBE_EXPORTER_VERSION: rel0.0.0 CMOA_MANUAL_PORT: 31090