提交 4140cd3c 编写于 作者: S suoych

1214 PR Suo

上级 e037cd5f
......@@ -402,7 +402,7 @@ PSERVER=2
DATA_PATH="/app"
SLOT_CONF="./slot.conf"
VERBOSE=0
DATA_CONF_PATH="data.config"
DATA_CONF_PATH="./data.config"
source $DATA_CONF_PATH
# Parse arguments
......
......@@ -7,12 +7,32 @@ metadata:
spec:
containers:
- name: file-server
image: hub.baidubce.com/ctr/file-server:hdfs7
image: hub.baidubce.com/ctr/file-server:hdfs9
ports:
- containerPort: 8080
command: ['bash']
args: ['run.sh']
env:
- name: NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: PADDLE_CURRENT_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: JAVA_HOME
value: /usr/local/jdk1.8.0_231
- name: HADOOP_HOME
......@@ -23,6 +43,7 @@ spec:
value: "<$ HDFS_UGI $>"
- name: PATH
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/jdk1.8.0_231/bin:/usr/local/hadoop-2.8.5/bin:/Python-3.7.0:/node-v12.13.1-linux-x64/bin
---
kind: Service
apiVersion: v1
......
......@@ -21,7 +21,7 @@ spec:
imagePullSecrets:
- name: default-secret
containers:
- image: hub.baidubce.com/ctr/fleet-ctr:89
- image: hub.baidubce.com/ctr/fleet-ctr:90
command:
- paddle_k8s
- start_fluid
......@@ -113,7 +113,7 @@ spec:
imagePullSecrets:
- name: default-secret
containers:
- image: hub.baidubce.com/ctr/fleet-ctr:89
- image: hub.baidubce.com/ctr/fleet-ctr:90
command:
- paddle_k8s
- start_fluid
......
# replace suo with other namespace
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: suo
namespace: suo
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: suo
namespace: suo
subjects:
- kind: ServiceAccount
name: default
namespace: suo
roleRef:
kind: ClusterRole
name: suo
apiGroup: rbac.authorization.k8s.io
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册