Skip to content

Commit 41c1213

Browse files
Merge branch 'master' of github.com:KubeOperator/ekko
2 parents 95da3fb + 4445188 commit 41c1213

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM node:14-alpine as stage-web-build
1+
FROM node:14.18.1 as stage-web-build
22

33
LABEL stage=stage-web-build
44

5-
RUN apk add make python gcc g++
5+
RUN apt-get install -y make python gcc g++
66

77
WORKDIR /build/kubepi/web
88

@@ -12,7 +12,6 @@ RUN make build_web
1212

1313
RUN rm -fr web
1414

15-
1615
FROM golang:1.16 as stage-bin-build
1716

1817
ENV GOPROXY="https://goproxy.cn,direct"
@@ -27,7 +26,6 @@ WORKDIR /build/kubepi/bin
2726

2827
COPY --from=stage-web-build /build/kubepi/web .
2928

30-
3129
RUN go mod download
3230

3331
RUN make build_gotty
@@ -56,7 +54,6 @@ RUN ARCH=$(uname -m) && case $ARCH in aarch64) ARCH="arm64";; x86_64) ARCH="amd6
5654

5755
COPY vimrc.local /etc/vim
5856

59-
6057
EXPOSE 80
6158

6259
USER root

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ KubePi 允许管理员导入多个 Kubernetes 集群,并且通过权限控制
2020

2121
sudo docker run --privileged -d --restart=unless-stopped -p 80:80 kubeoperator/kubepi-server
2222

23-
打开浏览器访问http://localhost
23+
打开浏览器访问:http://localhost:80/
2424

2525
### 在线体验
2626

@@ -41,7 +41,7 @@ KubePi 允许管理员导入多个 Kubernetes 集群,并且通过权限控制
4141
### 致谢
4242

4343
- [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 组件库
4545
- [Vue-element-admin](https://github.com/PanJiaChen/vue-element-admin) 项目脚手架
4646

4747
### License & Copyright

web/dashboard/src/business/network/services/index.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@
4242
<template v-slot:default="{row}">
4343
<div v-for="(value,key,index) in row.spec.ports" v-bind:key="index" type="info" size="mini">
4444
<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 }}
4652
</span>
4753
<br>
4854
</div>

0 commit comments

Comments
 (0)