Files
geo/deploy/k3s/addons/kite.yaml
T

84 lines
1.7 KiB
YAML
Raw Normal View History

# Source: https://github.com/kite-org/kite/blob/main/deploy/install.yaml
# Exposes Kite through NodePort 30082 for LAN-only dashboard access.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kite
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: kite
namespace: kube-system
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: kite
namespace: kube-system
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: kite
name: kite
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: kite
template:
metadata:
labels:
app: kite
spec:
serviceAccountName: kite
containers:
- image: ghcr.io/kite-org/kite:latest
imagePullPolicy: IfNotPresent
name: kite
resources:
limits:
cpu: 1000m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: kite
name: kite
namespace: kube-system
spec:
selector:
app: kite
type: NodePort
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
nodePort: 30082