forked from redhat-developer-demos/hybrid-cloud-serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backend-gcp.yml
77 lines (77 loc) · 2.46 KB
/
backend-gcp.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
apiVersion: "v1"
kind: "ServiceAccount"
metadata:
annotations:
app.quarkus.io/vcs-url: "https://github.com/redhat-developer-demos/hybrid-cloud.git"
app.quarkus.io/build-timestamp: "2020-03-30 - 19:36:33 +0000"
app.quarkus.io/commit-id: "2d21e21ba2145aebbdd7ffd805575a53635f791a"
labels:
app.kubernetes.io/name: "hybrid-cloud-backend"
app.kubernetes.io/version: "1.0.0"
name: "hybrid-cloud-backend"
---
apiVersion: "v1"
kind: "Service"
metadata:
annotations:
app.quarkus.io/vcs-url: "https://github.com/redhat-developer-demos/hybrid-cloud.git"
app.quarkus.io/build-timestamp: "2020-03-30 - 19:36:33 +0000"
app.quarkus.io/commit-id: "2d21e21ba2145aebbdd7ffd805575a53635f791a"
labels:
app.kubernetes.io/name: "hybrid-cloud-backend"
app.kubernetes.io/version: "1.0.0"
name: "hybrid-cloud-backend"
spec:
ports:
- name: "http"
port: 8080
targetPort: 8080
selector:
app.kubernetes.io/name: "hybrid-cloud-backend"
app.kubernetes.io/version: "1.0.0"
type: "ClusterIP"
---
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
annotations:
app.quarkus.io/vcs-url: "https://github.com/redhat-developer-demos/hybrid-cloud.git"
app.quarkus.io/build-timestamp: "2020-03-30 - 19:36:33 +0000"
app.quarkus.io/commit-id: "2d21e21ba2145aebbdd7ffd805575a53635f791a"
labels:
app.kubernetes.io/name: "hybrid-cloud-backend"
app.kubernetes.io/version: "1.0.0"
name: "hybrid-cloud-backend"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: "hybrid-cloud-backend"
app.kubernetes.io/version: "1.0.0"
template:
metadata:
annotations:
app.quarkus.io/vcs-url: "https://github.com/redhat-developer-demos/hybrid-cloud.git"
app.quarkus.io/build-timestamp: "2020-03-30 - 19:36:33 +0000"
app.quarkus.io/commit-id: "2d21e21ba2145aebbdd7ffd805575a53635f791a"
labels:
app.kubernetes.io/name: "hybrid-cloud-backend"
app.kubernetes.io/version: "1.0.0"
spec:
containers:
- env:
- name: "KUBERNETES_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: "metadata.namespace"
- name: "WORKER_CLOUD_ID"
value: "gcp"
image: "quay.io/rhdevelopers/hybrid-cloud-backend:1.0.0"
imagePullPolicy: "IfNotPresent"
name: "hybrid-cloud-backend"
ports:
- containerPort: 8080
name: "http"
protocol: "TCP"
serviceAccount: "hybrid-cloud-backend"