mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
说明
This commit is contained in:
81
deploy/deploy.yaml
Normal file
81
deploy/deploy.yaml
Normal file
@@ -0,0 +1,81 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
name: pandax
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
name: pandax
|
||||
namespace: pandax
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
name: pandax-rolebinding
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: cluster-admin
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: pandax
|
||||
namespace: pandax
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
name: pandax
|
||||
namespace: pandax
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
selector:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
type: LoadBalancer
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
name: pandax
|
||||
namespace: pandax
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pandax
|
||||
app.kubernetes.io/version: 1.0.0
|
||||
spec:
|
||||
containers:
|
||||
- image: xmadmin/pandax:v1.0
|
||||
imagePullPolicy: Always
|
||||
name: pandax
|
||||
ports:
|
||||
- containerPort: 7788
|
||||
name: http
|
||||
protocol: TCP
|
||||
serviceAccountName: pandax
|
||||
Reference in New Issue
Block a user