Skip to content

Commit 61afaf2

Browse files
authored
Create install.yaml
1 parent 056a569 commit 61afaf2

File tree

1 file changed

+273
-0
lines changed

1 file changed

+273
-0
lines changed

install/install.yaml

Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.3.0
6+
creationTimestamp: null
7+
name: installers.installer.devtron.ai
8+
spec:
9+
group: installer.devtron.ai
10+
names:
11+
kind: Installer
12+
listKind: InstallerList
13+
plural: installers
14+
singular: installer
15+
scope: Namespaced
16+
validation:
17+
openAPIV3Schema:
18+
description: Installer is the Schema for the installers API
19+
properties:
20+
apiVersion:
21+
description: 'APIVersion defines the versioned schema of this representation
22+
of an object. Servers should convert recognized schemas to the latest
23+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
24+
type: string
25+
kind:
26+
description: 'Kind is a string value representing the REST resource this
27+
object represents. Servers may infer this from the endpoint the client
28+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
29+
type: string
30+
metadata:
31+
type: object
32+
spec:
33+
description: InstallerSpec defines the desired state of Installer
34+
properties:
35+
url:
36+
description: URL of the BOM version to be installed
37+
type: string
38+
type: object
39+
status:
40+
description: InstallerStatus defines the observed state of Installer
41+
properties:
42+
current_spec_hash:
43+
type: string
44+
sync:
45+
description: SyncStatus is a comparison result of application spec and
46+
deployed application.
47+
properties:
48+
conditions:
49+
items:
50+
description: InstallerCondition contains details about current
51+
application condition
52+
properties:
53+
lastTransitionTime:
54+
description: LastTransitionTime is the time the condition
55+
was first observed.
56+
format: date-time
57+
type: string
58+
message:
59+
description: Message contains human-readable message indicating
60+
details about condition
61+
type: string
62+
type:
63+
description: Type is an application condition type
64+
type: string
65+
required:
66+
- message
67+
- type
68+
type: object
69+
type: array
70+
data:
71+
type: string
72+
health:
73+
properties:
74+
message:
75+
type: string
76+
status:
77+
description: Represents resource health status
78+
type: string
79+
type: object
80+
history:
81+
description: RevisionHistories is a array of history, oldest first
82+
and newest last
83+
items:
84+
description: RevisionHistory contains information relevant to
85+
an application deployment
86+
properties:
87+
deployStartedAt:
88+
description: DeployStartedAt holds the time the deployment
89+
started
90+
format: date-time
91+
type: string
92+
deployedAt:
93+
description: DeployedAt holds the time the deployment completed
94+
format: date-time
95+
type: string
96+
id:
97+
description: ID is an auto incrementing identifier of the
98+
RevisionHistory
99+
format: int64
100+
type: integer
101+
revision:
102+
description: Revision holds the revision of the sync
103+
type: string
104+
source:
105+
description: ApplicationSource contains information about
106+
github repository, path within repository and target application
107+
environment.
108+
properties:
109+
url:
110+
type: string
111+
type: object
112+
required:
113+
- deployedAt
114+
- id
115+
- revision
116+
type: object
117+
type: array
118+
resources:
119+
items:
120+
description: ResourceStatus holds the current sync and health
121+
status of a resource
122+
properties:
123+
group:
124+
type: string
125+
health:
126+
properties:
127+
message:
128+
type: string
129+
status:
130+
description: Represents resource health status
131+
type: string
132+
type: object
133+
kind:
134+
type: string
135+
name:
136+
type: string
137+
namespace:
138+
type: string
139+
operation:
140+
type: string
141+
status:
142+
type: string
143+
version:
144+
type: string
145+
type: object
146+
type: array
147+
status:
148+
type: string
149+
url:
150+
description: URL of the BOM version pulled
151+
type: string
152+
required:
153+
- status
154+
type: object
155+
required:
156+
- current_spec_hash
157+
- sync
158+
type: object
159+
type: object
160+
version: v1alpha1
161+
versions:
162+
- name: v1alpha1
163+
served: true
164+
storage: true
165+
status:
166+
acceptedNames:
167+
kind: ""
168+
plural: ""
169+
conditions: []
170+
storedVersions: []
171+
---
172+
apiVersion: v1
173+
kind: Namespace
174+
metadata:
175+
labels:
176+
name: devtron
177+
name: devtroncd
178+
---
179+
apiVersion: v1
180+
kind: ServiceAccount
181+
metadata:
182+
name: installer
183+
namespace: devtroncd
184+
---
185+
apiVersion: rbac.authorization.k8s.io/v1
186+
kind: ClusterRoleBinding
187+
metadata:
188+
name: installer
189+
roleRef:
190+
apiGroup: rbac.authorization.k8s.io
191+
kind: ClusterRole
192+
name: cluster-admin
193+
subjects:
194+
- kind: ServiceAccount
195+
name: installer
196+
namespace: devtroncd
197+
---
198+
apiVersion: rbac.authorization.k8s.io/v1
199+
kind: ClusterRoleBinding
200+
metadata:
201+
name: installer-editor
202+
roleRef:
203+
apiGroup: rbac.authorization.k8s.io
204+
kind: ClusterRole
205+
name: installer-editor-role
206+
subjects:
207+
- kind: ServiceAccount
208+
name: installer
209+
namespace: devtroncd
210+
---
211+
apiVersion: rbac.authorization.k8s.io/v1
212+
kind: ClusterRole
213+
metadata:
214+
name: installer-editor-role
215+
rules:
216+
- apiGroups:
217+
- installer.devtron.ai
218+
resources:
219+
- installers
220+
verbs:
221+
- create
222+
- delete
223+
- get
224+
- list
225+
- patch
226+
- update
227+
- watch
228+
- apiGroups:
229+
- installer.devtron.ai
230+
resources:
231+
- installers/status
232+
verbs:
233+
- get
234+
---
235+
apiVersion: apps/v1
236+
kind: Deployment
237+
metadata:
238+
labels:
239+
app: inception
240+
name: inception
241+
namespace: devtroncd
242+
spec:
243+
minReadySeconds: 60
244+
replicas: 1
245+
selector:
246+
matchLabels:
247+
app: inception
248+
template:
249+
metadata:
250+
creationTimestamp: null
251+
labels:
252+
app: inception
253+
spec:
254+
containers:
255+
-
256+
image: '686244538589.dkr.ecr.us-east-2.amazonaws.com/devtron:0fb62263-130-2166'
257+
imagePullPolicy: IfNotPresent
258+
name: inception
259+
ports:
260+
-
261+
containerPort: 8080
262+
name: app
263+
protocol: TCP
264+
resources:
265+
limits:
266+
cpu: 50m
267+
memory: 500Mi
268+
requests:
269+
cpu: 10m
270+
memory: 100Mi
271+
restartPolicy: Always
272+
serviceAccountName: installer
273+
terminationGracePeriodSeconds: 30

0 commit comments

Comments
 (0)