This repository has been archived by the owner on Mar 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
endpoints.yml
104 lines (102 loc) · 2.62 KB
/
endpoints.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
apiVersion: v1
kind: Template
metadata:
name: fabric8-tenant-che-migration-endpoints-template
objects:
- apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
labels:
provider: fabric8
project: fabric8-tenant-che-migration-endpoints
version: latest
group: quickstart
name: fabric8-tenant-che-migration-endpoints
spec:
replicas: 1
strategy:
type: Recreate
selector:
provider: fabric8
project: fabric8-tenant-che-migration-endpoints
group: quickstart
template:
metadata:
labels:
provider: fabric8
project: fabric8-tenant-che-migration-endpoints
version: ${VERSION}
group: quickstart
spec:
containers:
- env:
- name: DEBUG
value: ${DEBUG}
- name: CLEANUP_SINGLE_TENANT
value: ${CLEANUP_SINGLE_TENANT}
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: ${IMAGE}
imagePullPolicy: Always
command: [ "java", "-jar", "io.fabric8.tenant.che.migration.rest.jar" ]
name: fabric8-tenant-che-migration-endpoints
ports:
- containerPort: 8080
name: http
resources:
limits:
cpu: '1'
memory: 1024Mi
requests:
cpu: '1'
memory: 1024Mi
terminationGracePeriodSeconds: 2
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- fabric8-tenant-che-migration-endpoints
from:
kind: ImageStreamTag
name: ${IMAGE}
type: ImageChange
- apiVersion: v1
kind: Service
metadata:
annotations:
labels:
provider: fabric8
project: fabric8-tenant-che-migration-endpoints
version: ${VERSION}
group: quickstart
name: fabric8-tenant-che-migration-endpoints
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8081
selector:
project: fabric8-tenant-che-migration-endpoints
provider: fabric8
group: quickstart
parameters:
- description: Version
name: VERSION
value: latest
- description: The container image
name: IMAGE
value: "docker.io/dfestal/fabric8-tenant-che-migration:latest"
- description: If we should cleanup single resources after migration
name: CLEANUP_SINGLE_TENANT
value: "true"
- description: Add DEBUG logs
name: DEBUG
value: "false"
- description: The Java options to run the migration with
name: JAVA_OPTIONS
value: ""