File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
web/dashboard/src/business/network/services Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM node:14-alpine as stage-web-build
1
+ FROM node:14.18.1 as stage-web-build
2
2
3
3
LABEL stage=stage-web-build
4
4
5
- RUN apk add make python gcc g++
5
+ RUN apt-get install -y make python gcc g++
6
6
7
7
WORKDIR /build/kubepi/web
8
8
@@ -12,7 +12,6 @@ RUN make build_web
12
12
13
13
RUN rm -fr web
14
14
15
-
16
15
FROM golang:1.16 as stage-bin-build
17
16
18
17
ENV GOPROXY="https://goproxy.cn,direct"
@@ -27,7 +26,6 @@ WORKDIR /build/kubepi/bin
27
26
28
27
COPY --from=stage-web-build /build/kubepi/web .
29
28
30
-
31
29
RUN go mod download
32
30
33
31
RUN make build_gotty
@@ -56,7 +54,6 @@ RUN ARCH=$(uname -m) && case $ARCH in aarch64) ARCH="arm64";; x86_64) ARCH="amd6
56
54
57
55
COPY vimrc.local /etc/vim
58
56
59
-
60
57
EXPOSE 80
61
58
62
59
USER root
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ KubePi 允许管理员导入多个 Kubernetes 集群,并且通过权限控制
20
20
21
21
sudo docker run --privileged -d --restart=unless-stopped -p 80:80 kubeoperator/kubepi-server
22
22
23
- 打开浏览器访问 http ://localhost
23
+ 打开浏览器访问: http ://localhost:80/
24
24
25
25
### 在线体验
26
26
@@ -41,7 +41,7 @@ KubePi 允许管理员导入多个 Kubernetes 集群,并且通过权限控制
41
41
### 致谢
42
42
43
43
- [ Vue] ( https://cn.vuejs.org ) 前端框架
44
- - [ FIT2CLOUD UI] ( https://github.com/fit2cloud-ui/fit2cloud-ui/ ) FIT2CLOUD UI组件库
44
+ - [ FIT2CLOUD UI] ( https://github.com/fit2cloud-ui/fit2cloud-ui/ ) FIT2CLOUD UI 组件库
45
45
- [ Vue-element-admin] ( https://github.com/PanJiaChen/vue-element-admin ) 项目脚手架
46
46
47
47
### License & Copyright
Original file line number Diff line number Diff line change 42
42
<template v-slot :default =" {row } " >
43
43
<div v-for =" (value,key,index) in row.spec.ports" v-bind:key =" index" type =" info" size =" mini" >
44
44
<span style =" font-size : 12px " v-if =" row.spec.type ==='NodePort'" >
45
- {{ value.port }} : {{ value.nodePort }} /{{ value.protocol }} ---> {{ value.targetPort }}
45
+ {{ value.port }}:{{ value.nodePort }}/{{ value.protocol }}
46
+ </span >
47
+ <span style =" font-size : 12px " v-if =" row.spec.type !=='NodePort' && value.port === value.targetPort" >
48
+ {{ value.port }}/{{ value.protocol }}
49
+ </span >
50
+ <span style =" font-size : 12px " v-if =" row.spec.type !=='NodePort' && value.port !== value.targetPort" >
51
+ {{ value.port }}:{{ value.targetPort }}/{{ value.protocol }}
46
52
</span >
47
53
<br >
48
54
</div >
You can’t perform that action at this time.
0 commit comments