Skip to content

Commit 64b8a8b

Browse files
committed
Initialization of Gitops demo
1 parent 1cd4836 commit 64b8a8b

File tree

6 files changed

+167
-0
lines changed

6 files changed

+167
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- microcks-instance.yaml
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: microcks.io/v1alpha1
2+
kind: Microcks
3+
metadata:
4+
name: microcks
5+
spec:
6+
version: 1.11.1
7+
microcks:
8+
url: microcks.m.minikube.local
9+
env:
10+
- name: KEYCLOAK_ENABLED
11+
value: "false"
12+
keycloak:
13+
install: false
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: microcks-operator
5+
---
6+
apiVersion: apps/v1
7+
kind: Deployment
8+
metadata:
9+
name: microcks-operator
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
name: microcks-operator
15+
template:
16+
metadata:
17+
labels:
18+
name: microcks-operator
19+
spec:
20+
serviceAccountName: microcks-operator
21+
containers:
22+
- name: microcks-operator
23+
image: quay.io/microcks/microcks-operator:latest
24+
imagePullPolicy: Always
25+
env:
26+
- name: WATCH_NAMESPACE
27+
valueFrom:
28+
fieldRef:
29+
fieldPath: metadata.namespace
30+
- name: POD_NAME
31+
valueFrom:
32+
fieldRef:
33+
fieldPath: metadata.name
34+
- name: OPERATOR_NAME
35+
value: microcks-operator
36+
---
37+
apiVersion: rbac.authorization.k8s.io/v1
38+
kind: Role
39+
metadata:
40+
name: microcks-operator
41+
rules:
42+
- apiGroups:
43+
- ""
44+
resources:
45+
- pods
46+
- services
47+
- endpoints
48+
- persistentvolumeclaims
49+
- events
50+
- configmaps
51+
- secrets
52+
verbs:
53+
- '*'
54+
- apiGroups:
55+
- ""
56+
resources:
57+
- namespaces
58+
verbs:
59+
- get
60+
- apiGroups:
61+
- apps
62+
resources:
63+
- deployments
64+
- daemonsets
65+
- replicasets
66+
- statefulsets
67+
verbs:
68+
- '*'
69+
- apiGroups:
70+
- route.openshift.io
71+
resources:
72+
- routes
73+
verbs:
74+
- '*'
75+
- apiGroups:
76+
- networking.k8s.io
77+
resources:
78+
- ingresses
79+
verbs:
80+
- '*'
81+
- apiGroups:
82+
- route.openshift.io
83+
resources:
84+
- routes/custom-host
85+
verbs:
86+
- create
87+
- apiGroups:
88+
- extensions
89+
resources:
90+
- ingresses
91+
verbs:
92+
- '*'
93+
- apiGroups:
94+
- monitoring.coreos.com
95+
resources:
96+
- servicemonitors
97+
verbs:
98+
- get
99+
- create
100+
- apiGroups:
101+
- kafka.strimzi.io
102+
resources:
103+
- kafkas
104+
- kafkatopics
105+
verbs:
106+
- '*'
107+
- apiGroups:
108+
- microcks.io
109+
resources:
110+
- '*'
111+
verbs:
112+
- '*'
113+
---
114+
kind: RoleBinding
115+
apiVersion: rbac.authorization.k8s.io/v1
116+
metadata:
117+
name: microcks-operator
118+
subjects:
119+
- kind: ServiceAccount
120+
name: microcks-operator
121+
roleRef:
122+
kind: Role
123+
name: microcks-operator
124+
apiGroup: rbac.authorization.k8s.io
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bases:
2+
- ../../base
3+
patchesStrategicMerge:
4+
- microcks-instance.yaml
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: microcks.io/v1alpha1
2+
kind: APISource
3+
metadata:
4+
name: tests-artifacts
5+
annotations:
6+
microcks.io/instance: microcks
7+
spec:
8+
artifacts:
9+
- url: https://raw.githubusercontent.com/microcks/microcks/master/samples/APIPastry-openapi.yaml
10+
mainArtifact: true
11+
#- url: https://raw.githubusercontent.com/microcks/microcks/master/samples/hello-v1.proto
12+
# mainArtifact: true
13+
#- url: https://raw.githubusercontent.com/microcks/microcks/master/samples/HelloService.metadata.yml
14+
# mainArtifact: false
15+
#- url: https://raw.githubusercontent.com/microcks/microcks/master/samples/HelloService.postman.json
16+
# mainArtifact: false
17+
EOF
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: microcks.io/v1alpha1
2+
kind: Microcks
3+
metadata:
4+
name: microcks
5+
spec:
6+
microcks:
7+
url: microcks.m3.minikube.local

0 commit comments

Comments
 (0)