--- apiVersion: apps/v1 kind: Deployment metadata: name: terra-exporter namespace: monitoring labels: app.kubernetes.io/instance: terra-exporter app.kubernetes.io/name: terra-exporter spec: replicas: 1 selector: matchLabels: app.kubernetes.io/instance: terra-exporter app.kubernetes.io/name: terra-exporter template: metadata: labels: app.kubernetes.io/instance: terra-exporter app.kubernetes.io/name: terra-exporter spec: imagePullSecrets: - name: regcred containers: - image: registry.${SECRET_CLUSTER_DOMAIN}/homelab/terra-exporter:develop imagePullPolicy: Always name: terra-exporter ports: - containerPort: 9000 name: http --- apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/instance: terra-exporter app.kubernetes.io/name: terra-exporter name: terra-exporter namespace: monitoring spec: ports: - name: http port: 9000 protocol: TCP targetPort: 9000 selector: app.kubernetes.io/instance: terra-exporter app.kubernetes.io/name: terra-exporter type: ClusterIP ---