forked from tkaburagi/consul-multicluster-servicemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhashicorpx.yaml
40 lines (40 loc) · 821 Bytes
/
hashicorpx.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: v1
kind: ServiceAccount
metadata:
name: hashicorpx
---
apiVersion: v1
kind: Pod
metadata:
name: hashicorpx
labels:
app: "hashicorpx"
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9102"
consul.hashicorp.com/connect-inject: "true"
consul.hashicorp.com/connect-service-upstreams: "hashi-gce:5000, corpx:5001"
spec:
serviceAccountName: hashicorpx
containers:
- name: hashicorpx
image: gcr.io/se-kabu/hcxapp:latest
ports:
- containerPort: 8080
name: http
---
apiVersion: "v1"
kind: "Service"
metadata:
name: "hashicorpx-lb"
namespace: "multicluster-servicemesh"
labels:
app: "hashicorpx"
spec:
ports:
- protocol: "TCP"
port: 8080
targetPort: 8080
selector:
app: "hashicorpx"
type: "LoadBalancer"