Merge branch 'master' of http://gitlab.fjmaimaimai.com/mmm-go/opp
正在显示
2 个修改的文件
包含
5 行增加
和
0 行删除
@@ -24,4 +24,5 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories | @@ -24,4 +24,5 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories | ||
24 | WORKDIR /root/ | 24 | WORKDIR /root/ |
25 | COPY --from=builder /go/src/opp . | 25 | COPY --from=builder /go/src/opp . |
26 | EXPOSE 8080 | 26 | EXPOSE 8080 |
27 | +EXPOSE 443 | ||
27 | CMD ["./opp"] | 28 | CMD ["./opp"] |
@@ -10,6 +10,9 @@ spec: | @@ -10,6 +10,9 @@ spec: | ||
10 | - name: "http" | 10 | - name: "http" |
11 | port: 80 | 11 | port: 80 |
12 | targetPort: 8080 | 12 | targetPort: 8080 |
13 | + - name: "https" | ||
14 | + port: 443 | ||
15 | + targetPort: 443 | ||
13 | selector: | 16 | selector: |
14 | k8s-app: mmmopp | 17 | k8s-app: mmmopp |
15 | --- | 18 | --- |
@@ -53,6 +56,7 @@ spec: | @@ -53,6 +56,7 @@ spec: | ||
53 | name: opportunity-pvc1 | 56 | name: opportunity-pvc1 |
54 | ports: | 57 | ports: |
55 | - containerPort: 8080 | 58 | - containerPort: 8080 |
59 | + - containerPort: 443 | ||
56 | env: | 60 | env: |
57 | - name: MYSQL_HOST | 61 | - name: MYSQL_HOST |
58 | valueFrom: | 62 | valueFrom: |
-
请 注册 或 登录 后发表评论