Kuboard 官网给的 k8s 单节点快速部署似乎不太好用,直接用 docker 的翻译了一份,用于快速部署。
---
apiVersion: v1
kind: Namespace
metadata:
name: kuboard
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuboard
namespace: kuboard
spec:
replicas: 1
selector:
matchLabels:
app: kuboard
template:
metadata:
labels:
app: kuboard
spec:
containers:
- name: kuboard
image: eipwork/kuboard:v3
ports:
- containerPort: 80
name: http
- containerPort: 10081
name: agent
env:
- name: KUBOARD_ENDPOINT
value: "http://192.168.26.133:30080" # 请替换为您的实际内网 IP
- name: KUBOARD_AGENT_SERVER_TCP_PORT
value: "10081"
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
hostPath:
path: /etc/kuboard/data
type: DirectoryOrCreate
---
apiVersion: v1
kind: Service
metadata:
name: kuboard-svc
namespace: kuboard
spec:
selector:
app: kuboard
ports:
- name: http
port: 80
targetPort: 80
nodePort: 30080
- name: agent
port: 10081
targetPort: 10081
type: NodePort
Kubard 官网:https://kuboard.cn/