75 lines
1.8 KiB
YAML
75 lines
1.8 KiB
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: headlamp
|
|
namespace: kube-system
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
targetPort: 4466
|
|
selector:
|
|
k8s-app: headlamp
|
|
---
|
|
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: headlamp
|
|
namespace: kube-system
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: headlamp
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: headlamp
|
|
spec:
|
|
containers:
|
|
- name: headlamp
|
|
image: ghcr.io/headlamp-k8s/headlamp:latest
|
|
args:
|
|
- "-in-cluster"
|
|
- "-plugins-dir=/headlamp/plugins"
|
|
env:
|
|
- name: HEADLAMP_CONFIG_TRACING_ENABLED
|
|
value: "true"
|
|
- name: HEADLAMP_CONFIG_METRICS_ENABLED
|
|
value: "true"
|
|
- name: HEADLAMP_CONFIG_OTLP_ENDPOINT
|
|
value: "otel-collector:4317"
|
|
- name: HEADLAMP_CONFIG_SERVICE_NAME
|
|
value: "headlamp"
|
|
- name: HEADLAMP_CONFIG_SERVICE_VERSION
|
|
value: "latest"
|
|
ports:
|
|
- containerPort: 4466
|
|
name: http
|
|
- containerPort: 9090
|
|
name: metrics
|
|
readinessProbe:
|
|
httpGet:
|
|
scheme: HTTP
|
|
path: /
|
|
port: 4466
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 30
|
|
livenessProbe:
|
|
httpGet:
|
|
scheme: HTTP
|
|
path: /
|
|
port: 4466
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 30
|
|
nodeSelector:
|
|
'kubernetes.io/os': linux
|
|
---
|
|
kind: Secret
|
|
apiVersion: v1
|
|
metadata:
|
|
name: headlamp-admin
|
|
namespace: kube-system
|
|
annotations:
|
|
kubernetes.io/service-account.name: "headlamp-admin"
|
|
type: kubernetes.io/service-account-token
|