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