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