forked from myeung18/cockroachdb-go-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-crdb-app.yaml
52 lines (52 loc) · 1023 Bytes
/
deploy-crdb-app.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
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: crdb-go-quickstart
spec:
replicas: 1
selector:
matchLabels:
app: crdb-go-quickstart
template:
metadata:
labels:
app: crdb-go-quickstart
deploymentconfig: crdb-go-quickstart
spec:
containers:
- name: crdb-go-quickstart
image: quay.io/myeung/crdb-go-quickstart:v0.0.1
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
labels:
app: crdb-go-quickstart
name: crdb-go-quickstart
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: crdb-go-quickstart
deploymentconfig: crdb-go-quickstart
type: ClusterIP
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: crdb-go-quickstart
name: crdb-go-quickstart
spec:
to:
kind: Service
name: crdb-go-quickstart