Files
auricom-home-cluster/cluster/apps/monitoring/terra-exporter/deployment.yaml
2021-08-23 14:27:43 +02:00

51 lines
1.2 KiB
YAML

---
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
---