-
Notifications
You must be signed in to change notification settings - Fork 14
/
release.yaml
43 lines (38 loc) · 1.31 KB
/
release.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
apiVersion: v1
kind: Namespace
metadata: {name: warmimage-system}
---
apiVersion: v1
kind: ServiceAccount
metadata: {name: warmimage-controller, namespace: warmimage-system}
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata: {name: warmimage-controller-admin}
roleRef: {apiGroup: rbac.authorization.k8s.io, kind: ClusterRole, name: cluster-admin}
subjects:
- {kind: ServiceAccount, name: warmimage-controller, namespace: warmimage-system}
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata: {name: warmimages.mattmoor.io}
spec:
group: mattmoor.io
names: {kind: WarmImage, plural: warmimages, singular: warmimage}
scope: Namespaced
version: v2
---
apiVersion: apps/v1beta1
kind: Deployment
metadata: {name: warmimage-controller, namespace: warmimage-system}
spec:
replicas: 1
template:
metadata:
labels: {app: warmimage-controller}
spec:
containers:
- args: [-logtostderr=true, -stderrthreshold=INFO, -sleeper, 'gcr.io/mattmoor-public/sleeper@sha256:d431f1c78bb16fbb0c9831a610bc9580379a4f9ab0a339efd2ffb36ea5ffeca2']
image: gcr.io/mattmoor-public/warmimage-controller@sha256:5adc366a59c83b0bb12b424c86ea89a6f996fb089eefb5870d96cf242d7d4926
name: warmimage-controller
serviceAccountName: warmimage-controller