作者 唐旭辉

启用https端口443

@@ -12,5 +12,5 @@ ENV GO111MODULE on @@ -12,5 +12,5 @@ ENV GO111MODULE on
12 ENV GOPROXY https://goproxy.cn 12 ENV GOPROXY https://goproxy.cn
13 # RUN ["go","mod","tidy"] 13 # RUN ["go","mod","tidy"]
14 RUN ["go","build","-mod=vendor"] 14 RUN ["go","build","-mod=vendor"]
15 -EXPOSE 8082 15 +EXPOSE 8082 443
16 ENTRYPOINT ["./partnermg"] 16 ENTRYPOINT ["./partnermg"]
@@ -10,6 +10,9 @@ spec: @@ -10,6 +10,9 @@ spec:
10 - name: "http" 10 - name: "http"
11 port: 80 11 port: 80
12 targetPort: 8082 12 targetPort: 8082
  13 + - name: "https"
  14 + port: 443
  15 + targetPort: 443
13 selector: 16 selector:
14 k8s-app: mmm-partnermg 17 k8s-app: mmm-partnermg
15 --- 18 ---
@@ -48,6 +51,7 @@ spec: @@ -48,6 +51,7 @@ spec:
48 imagePullPolicy: Always 51 imagePullPolicy: Always
49 ports: 52 ports:
50 - containerPort: 8082 53 - containerPort: 8082
  54 + - containerPort: 443
51 volumeMounts: 55 volumeMounts:
52 - mountPath: /opt/logs 56 - mountPath: /opt/logs
53 name: accesslogs 57 name: accesslogs
@@ -10,6 +10,9 @@ spec: @@ -10,6 +10,9 @@ spec:
10 - name: "http" 10 - name: "http"
11 port: 80 11 port: 80
12 targetPort: 8082 12 targetPort: 8082
  13 + - name: "https"
  14 + port: 443
  15 + targetPort: 443
13 selector: 16 selector:
14 k8s-app: mmm-partnermg 17 k8s-app: mmm-partnermg
15 --- 18 ---
@@ -45,6 +48,7 @@ spec: @@ -45,6 +48,7 @@ spec:
45 imagePullPolicy: Always 48 imagePullPolicy: Always
46 ports: 49 ports:
47 - containerPort: 8082 50 - containerPort: 8082
  51 + - containerPort: 443
48 volumeMounts: 52 volumeMounts:
49 - mountPath: /opt/logs 53 - mountPath: /opt/logs
50 name: accesslogs 54 name: accesslogs
@@ -10,6 +10,9 @@ spec: @@ -10,6 +10,9 @@ spec:
10 - name: "http" 10 - name: "http"
11 port: 80 11 port: 80
12 targetPort: 8082 12 targetPort: 8082
  13 + - name: "https"
  14 + port: 443
  15 + targetPort: 443
13 selector: 16 selector:
14 k8s-app: mmm-partnermg 17 k8s-app: mmm-partnermg
15 --- 18 ---
@@ -45,6 +48,7 @@ spec: @@ -45,6 +48,7 @@ spec:
45 imagePullPolicy: Always 48 imagePullPolicy: Always
46 ports: 49 ports:
47 - containerPort: 8082 50 - containerPort: 8082
  51 + - containerPort: 443
48 volumeMounts: 52 volumeMounts:
49 - mountPath: /opt/logs 53 - mountPath: /opt/logs
50 name: accesslogs 54 name: accesslogs