mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
更新K3S,docker-compose两种部署方式
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pandax
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: pandax
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
spec:
|
||||
serviceAccountName: pandax
|
||||
containers:
|
||||
- name: pandax
|
||||
image: xmadmin/pandax:v1.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
@@ -1,8 +1,8 @@
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- rbac.yaml
|
||||
- service.yaml
|
||||
- deployment.yaml
|
||||
- pandax/pandax-deployment-service.yaml
|
||||
- pandax/pandaxweb-deployment-service.yaml
|
||||
- pandax/pandaxrule-deployment-service.yaml
|
||||
- pandax/pandaxscreen-deployment-service.yaml
|
||||
|
||||
commonLabels:
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: master
|
||||
name: pandax
|
||||
65
deploy/manifest/pandax/pandax-deployment-service.yaml
Normal file
65
deploy/manifest/pandax/pandax-deployment-service.yaml
Normal file
@@ -0,0 +1,65 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pandax
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 7788
|
||||
targetPort: 7788
|
||||
protocol: TCP
|
||||
- port: 9001
|
||||
targetPort: 9001
|
||||
protocol: TCP
|
||||
- port: 9002
|
||||
targetPort: 9002
|
||||
protocol: TCP
|
||||
- port: 9003
|
||||
targetPort: 9003
|
||||
protocol: TCP
|
||||
- port: 8801
|
||||
targetPort: 8801
|
||||
protocol: TCP
|
||||
- port: 5060
|
||||
targetPort: 5060
|
||||
protocol: TCP
|
||||
selector:
|
||||
app.kubernetes.io/name: pandax
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pandax
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: pandax
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
spec:
|
||||
serviceAccountName: pandax
|
||||
containers:
|
||||
- name: pandax
|
||||
image: ccr.ccs.tencentyun.com/pandax/pandax:v1.9.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 7788
|
||||
protocol: TCP
|
||||
- containerPort: 9001
|
||||
protocol: TCP
|
||||
- containerPort: 9002
|
||||
protocol: TCP
|
||||
- containerPort: 9003
|
||||
protocol: TCP
|
||||
- containerPort: 8801
|
||||
protocol: TCP
|
||||
- containerPort: 5060
|
||||
protocol: TCP
|
||||
|
||||
40
deploy/manifest/pandax/pandaxrule-deployment-service.yaml
Normal file
40
deploy/manifest/pandax/pandaxrule-deployment-service.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pandaxrule
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxrule
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 7791
|
||||
targetPort: 7791
|
||||
protocol: TCP
|
||||
selector:
|
||||
app.kubernetes.io/name: pandaxrule
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pandaxrule
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxrule
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: pandaxrule
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxrule
|
||||
spec:
|
||||
serviceAccountName: pandaxrule
|
||||
containers:
|
||||
- name: pandaxrule
|
||||
image: ccr.ccs.tencentyun.com/pandax/pandaxrule:v1.8
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 7791
|
||||
protocol: TCP
|
||||
|
||||
40
deploy/manifest/pandax/pandaxscreen-deployment-service.yaml
Normal file
40
deploy/manifest/pandax/pandaxscreen-deployment-service.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pandaxscreen
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxscreen
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 7790
|
||||
targetPort: 7790
|
||||
protocol: TCP
|
||||
selector:
|
||||
app.kubernetes.io/name: pandaxscreen
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pandaxscreen
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxscreen
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: pandaxscreen
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxscreen
|
||||
spec:
|
||||
serviceAccountName: pandaxscreen
|
||||
containers:
|
||||
- name: pandaxscreen
|
||||
image: ccr.ccs.tencentyun.com/pandax/pandaxscreen:v1.9.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 7790
|
||||
protocol: TCP
|
||||
|
||||
40
deploy/manifest/pandax/pandaxweb-deployment-service.yaml
Normal file
40
deploy/manifest/pandax/pandaxweb-deployment-service.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pandaxweb
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxweb
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 7788
|
||||
targetPort: 7789
|
||||
protocol: TCP
|
||||
selector:
|
||||
app.kubernetes.io/name: pandaxweb
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pandaxweb
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxweb
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: pandaxweb
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandaxweb
|
||||
spec:
|
||||
serviceAccountName: pandaxweb
|
||||
containers:
|
||||
- name: pandaxweb
|
||||
image: ccr.ccs.tencentyun.com/pandax/pandaxweb:v1.9.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 7789
|
||||
protocol: TCP
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: pandax
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: pandax-rolebinding
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: cluster-admin
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: pandax
|
||||
@@ -1,15 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pandax
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app.kubernetes.io/name: pandax
|
||||
Reference in New Issue
Block a user