39 lines
771 B
YAML
39 lines
771 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: headlamp
|
|
namespace: kube-system
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: headlamp
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: headlamp
|
|
spec:
|
|
containers:
|
|
- name: headlamp
|
|
image: ghcr.io/headlamp-k8s/headlamp:latest
|
|
# We only use -in-cluster. No other flags allowed.
|
|
args:
|
|
- "-in-cluster"
|
|
ports:
|
|
- containerPort: 4466
|
|
name: http
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: headlamp
|
|
namespace: kube-system
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app.kubernetes.io/name: headlamp
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 4466
|
|
nodePort: 30001 |