正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -2,7 +2,7 @@ apiVersion: v1 | @@ -2,7 +2,7 @@ apiVersion: v1 | ||
| 2 | kind: Service | 2 | kind: Service |
| 3 | metadata: | 3 | metadata: |
| 4 | name: allied-creation-cooperation | 4 | name: allied-creation-cooperation |
| 5 | - namespace: <replace-your-k8s-namespace> | 5 | + namespace: mmm-suplus-test |
| 6 | labels: | 6 | labels: |
| 7 | k8s-app: allied-creation-cooperation | 7 | k8s-app: allied-creation-cooperation |
| 8 | spec: | 8 | spec: |
| @@ -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: allied-creation-cooperation | 17 | k8s-app: allied-creation-cooperation |
| 15 | --- | 18 | --- |
| @@ -17,7 +20,7 @@ apiVersion: extensions/v1beta1 | @@ -17,7 +20,7 @@ apiVersion: extensions/v1beta1 | ||
| 17 | kind: Deployment | 20 | kind: Deployment |
| 18 | metadata: | 21 | metadata: |
| 19 | name: allied-creation-cooperation | 22 | name: allied-creation-cooperation |
| 20 | - namespace: <replace-your-k8s-namespace> | 23 | + namespace: mmm-suplus-test |
| 21 | labels: | 24 | labels: |
| 22 | k8s-app: allied-creation-cooperation | 25 | k8s-app: allied-creation-cooperation |
| 23 | spec: | 26 | spec: |
| @@ -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 |
-
请 注册 或 登录 后发表评论