Skip to content

Commit 2dd90fd

Browse files
created a separate service
1 parent f3f677c commit 2dd90fd

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

k8s/gateway.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: apmtips-svc
5+
labels:
6+
app: apmtips
7+
service: apmtips
8+
spec:
9+
selector:
10+
run: apmtips
11+
ports:
12+
- port: 80
13+
targetPort: 80
14+
---
115
apiVersion: networking.istio.io/v1alpha3
216
kind: Gateway
317
metadata:
@@ -28,6 +42,6 @@ spec:
2842
exact: /apmtips
2943
route:
3044
- destination:
31-
host: apmtips
45+
host: apmtips-svc
3246
port:
3347
number: 80

k8s/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ metadata:
3333
spec:
3434
domains:
3535
- hugo.apmtips.com
36-
- apmtips.com
36+
- apmtips.com

0 commit comments

Comments
 (0)