mongo建库
use wekan
db.createUser(
{
user: "wekan",
pwd: "wekan_password",
roles: ["readWrite"]
}
)
Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: wekan
spec:
replicas: 1
selector:
matchLabels:
app: wekan
template:
metadata:
labels:
app: wekan
spec:
containers:
- name: wekan
image: wekanteam/wekan
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
env:
- name: MONGO_URL
value: mongodb://wekan:wekan_password@192.168.2.144:27017/wekan?authSource=wekan
- name: ROOT_URL
value: http://wekan.test.com
service
kind: Service
apiVersion: v1
metadata:
name: wekan
spec:
type: NodePort
ports:
- name: mysql
port: 8080
nodePort: 30005
targetPort: 8080
protocol: TCP
selector:
app: wekan