3.1安装webui
service
kind: Service
apiVersion: v1
metadata:
name: online-webui-service
namespace: default
labels:
name: online-webui-service
spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 32006
selector:
app: online-webui
type: NodePortdeployment
kind: Deployment
apiVersion: apps/v1
metadata:
name: online-webui
namespace: default
labels:
app: online-webui
spec:
replicas: 1
selector:
matchLabels:
app: online-webui
template:
metadata:
labels:
app: online-webui
spec:
containers:
- name: online-webui
image: registry.cn-chengdu.aliyuncs.com/liuchenyun/online-webui:latest
ports:
- containerPort: 80
protocol: TCP
env:
- name: IPORTAL_SERVER
value: http://iportal-service:5101
resources:
requests:
cpu: 10m
memory: 10Mi
imagePullPolicy: Always
restartPolicy: Always
imagePullSecrets:
- name: dockercfg-liuchenyun