File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ # this is only an EXAMPLE of deploying casddor in kubernetes
2
+ # please modify this file according to your requirements
3
+ apiVersion : v1
4
+ kind : Service
5
+ metadata :
6
+ # EDIT IT: if you don't want to run casdoor in default namespace, please modify this field
7
+ # namespace: casdoor
8
+ name : casdoor-svc
9
+ labels :
10
+ app : casdoor
11
+ spec :
12
+ # EDIT IT: if you don't want to run casdoor in default namespace, please modify this filed
13
+ type : NodePort
14
+ ports :
15
+ - port : 8000
16
+ selector :
17
+ app : casdoor
18
+ ---
19
+ apiVersion : apps/v1
20
+ kind : Deployment
21
+ metadata :
22
+ # EDIT IT: if you don't want to run casdoor in default namespace, please modify this field
23
+ # namespace: casdoor
24
+ name : casdoor-deployment
25
+ labels :
26
+ app : casdoor
27
+ spec :
28
+ # EDIT IT: if you don't use redis, casdoor should not have multiple replicas
29
+ replicas : 1
30
+ selector :
31
+ matchLabels :
32
+ app : casdoor
33
+ template :
34
+ metadata :
35
+ labels :
36
+ app : casdoor
37
+ spec :
38
+ containers :
39
+ - name : casdoor-container
40
+ image : casbin/casdoor:latest
41
+ imagePullPolicy : Always
42
+ ports :
43
+ - containerPort : 8000
44
+ volumeMounts :
45
+ # the mounted directory path in THE CONTAINER
46
+ - mountPath : /conf
47
+ name : conf
48
+ env :
49
+ - name : RUNNING_IN_DOCKER
50
+ value : " true"
51
+ # if you want to deploy this in real prod env, consider the config map
52
+ volumes :
53
+ - name : conf
54
+ hostPath :
55
+ # EDIT IT: the mounted directory path in THE HOST
56
+ path : /conf
You can’t perform that action at this time.
0 commit comments