k3s安装halo
apiVersion: apps/v1
kind: Deployment
metadata:
name: halo
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: halo
env: prod
template:
metadata:
labels:
app: halo
env: prod
spec:
containers:
- name: halo
image: halohub/halo:2.6.0
ports:
- containerPort: 8090
volumeMounts:
- name: halo-files
mountPath: "/root/.halo2"
subPath: "halo2"
args:
- --halo.security.initializer.superadminusername=admin
- --halo.security.initializer.superadminpassword=123456
volumes:
- name: halo-files
persistentVolumeClaim:
claimName: local-path-pvc
---
apiVersion: v1
kind: Service
metadata:
name: halo-service
namespace: default
spec:
selector:
app: halo
ports:
- port: 80
targetPort: 8090
评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果