Skip to content

Commit 1bae79d

Browse files
authored
current snapshot of iter8-install = iter8/install (#725)
Signed-off-by: Srinivasan Parthasarathy <[email protected]>
1 parent 437f067 commit 1bae79d

33 files changed

+22688
-0
lines changed

install/core/build.yaml

Lines changed: 1529 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: analytics
5+
labels:
6+
app: iter8-analytics
7+
spec:
8+
replicas: 1
9+
selector:
10+
matchLabels:
11+
app: iter8-analytics
12+
template:
13+
metadata:
14+
labels:
15+
app: iter8-analytics
16+
spec:
17+
serviceAccountName: analytics
18+
containers:
19+
- name: iter8-analytics
20+
image: "iter8/iter8-analytics:latest"
21+
imagePullPolicy: Always
22+
resources:
23+
{}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resources:
2+
- service.yaml
3+
- deployment.yaml
4+
5+
images:
6+
- name: iter8/iter8-analytics
7+
# to change iter8-analytics version, edit the next line
8+
newTag: 2.1.1
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: analytics
5+
labels:
6+
app: iter8-analytics
7+
spec:
8+
selector:
9+
app: iter8-analytics
10+
type: ClusterIP
11+
ports:
12+
- port: 8080
13+
targetPort: 8080
14+
protocol: TCP
15+
name: http
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: controller-manager
5+
labels:
6+
control-plane: controller-manager
7+
spec:
8+
selector:
9+
matchLabels:
10+
control-plane: controller-manager
11+
replicas: 1
12+
template:
13+
metadata:
14+
labels:
15+
control-plane: controller-manager
16+
spec:
17+
serviceAccountName: controller
18+
containers:
19+
- command:
20+
- /manager
21+
args:
22+
- --enable-leader-election
23+
image: iter8/etc3:latest
24+
imagePullPolicy: Always
25+
name: manager
26+
env:
27+
- name: ITER8_ANALYTICS_ENDPOINT
28+
value: http://iter8-analytics.ITER8_NAMESPACE:8080/v2/analytics_results
29+
- name: ITER8_NAMESPACE
30+
valueFrom:
31+
fieldRef:
32+
fieldPath: metadata.namespace
33+
- name: HANDLERS_DIR
34+
value: /handlers
35+
resources:
36+
limits:
37+
cpu: 100m
38+
memory: 30Mi
39+
requests:
40+
cpu: 100m
41+
memory: 20Mi
42+
volumeMounts:
43+
- mountPath: /handlers
44+
name: handlers-volume
45+
volumes:
46+
- name: handlers-volume
47+
configMap:
48+
name: iter8-handlers
49+
terminationGracePeriodSeconds: 10
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
resources:
2+
- etc3.yaml
3+
# to change Iter8 CRDs version, edit the next line
4+
- github.com/iter8-tools/etc3/config/crd/?ref=v0.1.21
5+
6+
images:
7+
- name: iter8/etc3:latest
8+
# to change etc3 version, edit the next line
9+
newTag: 0.1.24
10+
11+
# even if you do not change the CRD,
12+
# keep the two version numbers in sync to keep them the same
13+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: handler
5+
spec:
6+
template:
7+
spec:
8+
serviceAccountName: iter8-handlers
9+
containers:
10+
- name: iter8-handler
11+
# to change handler version, edit the line below
12+
image: iter8/handler:0.1.15
13+
command: ["handler"]
14+
args: ["run", "-a", "$(ACTION)"]
15+
env:
16+
- name: ACTION
17+
value: start
18+
- name: EXPERIMENT_NAMESPACE
19+
value: EXPERIMENT_NAMESPACE_VALUE
20+
- name: EXPERIMENT_NAME
21+
value: EXPERIMENT_NAME_VALUE
22+
restartPolicy: Never
23+
backoffLimit: 1
24+
activeDeadlineSeconds: 300
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
configMapGenerator:
2+
- name: handlers
3+
files:
4+
- handler.yaml
5+
generatorOptions:
6+
disableNameSuffixHash: true
7+
8+
# if you want to change handler version, do so by editing handler.yaml

install/core/kustomization.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
##########
2+
# Iter8 namespace is specified in four places:
3+
#
4+
# 1. the namespace field in core/kustomization.yaml (this file),
5+
# 2. the name field in core/namespace.yaml file,
6+
# 3. the namespace field in prometheus-add-on/prometheus-operator/kustomization.yaml, and
7+
# 4. the namespace field in prometheus-add-on/prometheus/kustomization.yaml.
8+
#
9+
# By default, Iter8 will be installed in the 'iter8-system' namespace.
10+
#
11+
# To change the namespace where Iter8 will be installed,
12+
# substitute 'iter8-system' in these four locations with your namespace.
13+
###########
14+
15+
namePrefix: iter8-
16+
17+
namespace: iter8-system
18+
19+
commonLabels:
20+
creator: iter8
21+
22+
resources:
23+
- iter8-analytics
24+
- iter8-controller
25+
- iter8-handler
26+
- rbac
27+
- namespace.yaml
28+
29+
##########
30+
# Kubernetes stacks are specified in three places:
31+
#
32+
# 1. the resources array field in core/rbac/stacks/kustomization.yaml,
33+
# 2. the resources array field in metrics/kustomization.yaml file, and
34+
# 3. the resources array field in prometheus-add-on/service-monitors/kustomization.file
35+
#
36+
# By default, Iter8 will install manifests corresponding to all the stacks.
37+
#
38+
# To change selectively turn off stacks, comment out the corresponding resources
39+
# in these three files.
40+
###########

install/core/namespace.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
##########
2+
# Iter8 namespace is specified in four places:
3+
#
4+
# 1. the namespace field in core/kustomization.yaml,
5+
# 2. the name field in core/namespace.yaml file (this file),
6+
# 3. the namespace field in prometheus-add-on/prometheus-operator/kustomization.yaml, and
7+
# 4. the namespace field in prometheus-add-on/prometheus/kustomization.yaml.
8+
#
9+
# By default, Iter8 will be installed in the 'iter8-system' namespace.
10+
#
11+
# To change the namespace where Iter8 will be installed,
12+
# substitute 'iter8-system' in these four locations with your namespace.
13+
###########
14+
15+
apiVersion: v1
16+
kind: Namespace
17+
metadata:
18+
labels:
19+
control-plane: controller-manager
20+
name: system

0 commit comments

Comments
 (0)