-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcorp-gke-1.yaml
56 lines (56 loc) · 1.3 KB
/
corp-gke-1.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: v1
kind: ServiceAccount
metadata:
name: corpx
---
apiVersion: v1
kind: Pod
metadata:
name: corpx
labels:
app: "corpx"
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9102"
consul.hashicorp.com/connect-inject: "true"
consul.hashicorp.com/connect-service-upstreams: "country-api:5000:dc-2"
spec:
serviceAccountName: corpx
containers:
- name: corpx
image: gcr.io/se-kabu/corxpapp-geox-error-handling:latest
ports:
- containerPort: 8080
name: http
env:
- name: gke_location
value: "GKE-1"
#apiVersion: apps/v1
#kind: Deployment
#metadata:
# name: "corpx-deployment"
# annotations:
# prometheus.io/scrape: "true"
# prometheus.io/port: "9102"
# consul.hashicorp.com/connect-inject: "true"
# consul.hashicorp.com/connect-service-upstreams: "country-api:5000:dc-2"
#spec:
# replicas: 3
# selector:
# matchLabels:
# app: "corpx"
# template:
# metadata:
# labels:
# app: "corpx"
# spec:
# containers:
# - name: "corpx"
# image: gcr.io/se-kabu/corxpapp-geox:latest
# ports:
# - containerPort: 8080
# name: http
# env:
# - name: gke_location
# value: "GKE-1"
# serviceAccountName: "corpx"