-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes/kubernetes 1 #520
base: integration/pg
Are you sure you want to change the base?
Fixes/kubernetes 1 #520
Changes from 142 commits
fe3bcf2
1b23f3b
05558f7
0df742a
53dfad1
ce6703f
c3ce564
0462789
a64f48b
08263f2
d6cec83
727c568
dfb64aa
02fd40d
8f6f1b2
8c87fc9
33bc033
0ef4f39
0431c53
f056394
c8e0385
d79db58
675287c
418d173
bd688e2
7a729e5
a35909c
d61b3b0
80886b6
751250e
dd6a270
1013659
97c6467
95e4adf
85101c7
9f4630f
29a17d8
ec39e24
b53e0e6
a7a7567
b0b58e1
98166b1
03d9418
4ff4550
6797a9f
ff4a7e4
7ff34b6
c13c670
d5c53f0
00ee2b0
e25b70d
cf74f09
b914a16
542216e
7f7cffd
b84eb3b
20f6e85
3a8d0e2
e283c08
3bac798
9da04ae
e16075f
e3a2233
47fb63f
1e4cff1
32ab348
b22aada
58fa48f
27a061a
b62157a
541e16c
16d311e
d7c403c
d179205
ae7076a
93a2e43
1d35bc3
61df181
7d6b9e8
5f398bc
86c630c
a6849ca
14b8e82
8d7270a
4e6ac84
44ee987
4917b8c
55a0f9d
9f9db85
9c022b7
b27257f
e885826
418915e
e5b349f
2c577a1
28f06f5
9dcb3fb
1eafdd3
bef1d77
c53fdd7
4bfcfd8
42c05e2
dd87156
f4a5b69
e529be6
3a29e96
9289bdd
42a1315
9396c10
8e54291
0beca8b
b2b08e8
96d125b
1b0cc81
c716a5a
6a39c3b
44e84a0
4815eb0
48b7cd6
7a6c124
384a430
6ed5e44
7d57891
c9305de
1b2fbee
9e1fc80
6819a6e
aba820a
1b7a276
1ee0413
7fcc246
1c973d0
0cb29d1
8d634ea
81d3e87
975f4c4
9b23236
bbbb646
df42208
78cfff4
04e4f90
fda1a61
6865e77
11630c7
bb75ffd
aa28c80
b940b2d
15bd504
5893557
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,3 +109,39 @@ lc-run: | |
dev: | ||
docker-compose -f docker-compose-dev.yml build | ||
docker-compose -f docker-compose-dev.yml -f docker-compose.override.yml up | ||
|
||
#kubernetes configurations | ||
#- | ||
create-cluster: | ||
sudo kubeadm init --pod-network-cidr=192.168.0.0/16 | ||
|
||
configure-kubectl: | ||
mkdir -p $HOME/.kube | ||
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | ||
sudo chown $(id -u):$(id -g) $HOME/.kube/config | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is |
||
|
||
schedule-on-master: | ||
kubectl taint nodes --all node-role.kubernetes.io/master- | ||
|
||
start-cni: | ||
kubectl apply -f ./resource/calico.yaml && kubectl apply -f - <resource/calicoctl.yaml && alias calicoctl="kubectl exec -i -n kube-system calicoctl /calicoctl -- " | ||
|
||
create-ippool: | ||
calicoctl apply -f ./resource/pools.yaml | ||
|
||
create-namespace: | ||
kubectl create -f ./resource/namespaces.yaml | ||
|
||
assign-to-ippool: | ||
kubectl annotate namespace hobbit "cni.projectcalico.org/ipv4pools"='[“hobbit"]' | ||
kubectl annotate namespace hobbit-core "cni.projectcalico.org/ipv4pools"='[“hobbit-core"]' | ||
kubectl annotate namespace hobbit-service "cni.projectcalico.org/ipv4pools"='[“hobbit-service"]' | ||
|
||
start-platform: | ||
kubectl apply -f ./resource/kompose | ||
|
||
start-dev-platform: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's already a target named |
||
kubectl apply -f ./resource/kompose-dev | ||
|
||
start-elk-platform: | ||
kubectl apply -f ./resource/kompose-elk |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false"> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | ||
<output url="file://$MODULE_DIR$/target/classes" /> | ||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" /> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" name="Maven: org.aksw:palmetto:0.1.1" level="project" /> | ||
<orderEntry type="library" name="Maven: com.carrotsearch:hppc:0.6.1" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-core:4.4.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-analyzers-common:4.4.0" level="project" /> | ||
<orderEntry type="library" name="Maven: com.google.guava:guava:18.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.10" level="project" /> | ||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.6.5" level="project" /> | ||
<orderEntry type="library" name="Maven: nz.ac.waikato.cms.weka:weka-stable:3.8.0" level="project" /> | ||
<orderEntry type="library" name="Maven: nz.ac.waikato.cms.weka.thirdparty:java-cup-11b:2015.03.26" level="project" /> | ||
<orderEntry type="library" name="Maven: nz.ac.waikato.cms.weka.thirdparty:java-cup-11b-runtime:2015.03.26" level="project" /> | ||
|
@@ -33,35 +42,43 @@ | |
<orderEntry type="library" name="Maven: net.sourceforge.f2j:arpack_combined_all:0.1" level="project" /> | ||
<orderEntry type="library" name="Maven: com.googlecode.netlib-java:netlib-java:1.1" level="project" /> | ||
<orderEntry type="library" name="Maven: com.github.fommil.netlib:core:1.1" level="project" /> | ||
<orderEntry type="library" name="Maven: commons-io:commons-io:2.5" level="project" /> | ||
<orderEntry type="library" name="Maven: org.hobbit:core:1.0.8-SNAPSHOT" level="project" /> | ||
<orderEntry type="library" name="Maven: commons-io:commons-io:2.4" level="project" /> | ||
<orderEntry type="library" name="Maven: org.hobbit:core:1.0.18" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.3.2" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-shaded-guava:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-arq:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.3" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.6" level="project" /> | ||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.9" level="project" /> | ||
<orderEntry type="library" name="Maven: com.github.jsonld-java:jsonld-java:0.11.1" level="project" /> | ||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.0" level="project" /> | ||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.0" level="project" /> | ||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient-cache:4.5.3" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.thrift:libthrift:0.10.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.slf4j:jcl-over-slf4j:1.7.25" level="project" /> | ||
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.7" level="project" /> | ||
<orderEntry type="library" name="Maven: com.google.guava:guava:18.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.15" level="project" /> | ||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-log4j12:1.7.15" level="project" /> | ||
<orderEntry type="library" name="Maven: log4j:log4j:1.2.17" level="project" /> | ||
<orderEntry type="library" name="Maven: com.rabbitmq:amqp-client:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-core:3.1.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-iri:3.1.0" level="project" /> | ||
<orderEntry type="library" name="Maven: com.rabbitmq:amqp-client:4.8.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-core:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-iri:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: xerces:xercesImpl:2.11.0" level="project" /> | ||
<orderEntry type="library" name="Maven: xml-apis:xml-apis:1.4.01" level="project" /> | ||
<orderEntry type="library" name="Maven: commons-cli:commons-cli:1.3" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-base:3.1.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-shaded-guava:3.1.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.commons:commons-csv:1.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.3.2" level="project" /> | ||
<orderEntry type="library" name="Maven: com.github.andrewoma.dexx:collection:0.6" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-tdb:3.1.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-arq:3.1.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.2.6" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.2.5" level="project" /> | ||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.6" level="project" /> | ||
<orderEntry type="library" name="Maven: com.github.jsonld-java:jsonld-java:0.7.0" level="project" /> | ||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.3.3" level="project" /> | ||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.3.3" level="project" /> | ||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.3.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient-cache:4.2.6" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.thrift:libthrift:0.9.2" level="project" /> | ||
<orderEntry type="library" name="Maven: org.slf4j:jcl-over-slf4j:1.7.20" level="project" /> | ||
<orderEntry type="library" name="Maven: commons-cli:commons-cli:1.4" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-base:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.commons:commons-csv:1.5" level="project" /> | ||
<orderEntry type="library" name="Maven: com.github.andrewoma.dexx:collection:0.7" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-tdb:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-tdb2:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-dboe-trans-data:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-dboe-transaction:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-dboe-base:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-dboe-index:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.apache.jena:jena-rdfconnection:3.6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-log4j12:1.7.10" level="project" /> | ||
<orderEntry type="library" name="Maven: log4j:log4j:1.2.17" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: com.github.stefanbirkner:system-rules:1.17.0" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: junit:junit-dep:4.10" level="project" /> | ||
</component> | ||
</module> | ||
</module> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this file be just deleted and ignored? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
io.kompose.service: analysis | ||
name: analysis | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: analysis | ||
strategy: {} | ||
template: | ||
metadata: | ||
labels: | ||
io.kompose.network/hobbit-core: "true" | ||
io.kompose.service: analysis | ||
spec: | ||
nodeSelector: | ||
node-role: system | ||
containers: | ||
- env: | ||
- name: HOBBIT_RABBIT_HOST | ||
value: 192.168.210.214:5672 | ||
image: hobbitproject/hobbit-analysis-component:latest | ||
imagePullPolicy: "IfNotPresent" | ||
name: analysis | ||
resources: {} | ||
restartPolicy: Always | ||
serviceAccountName: "" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
io.kompose.service: gui | ||
name: gui | ||
spec: | ||
ports: | ||
- name: "8080" | ||
port: 8080 | ||
targetPort: 8080 | ||
nodePort: 30007 | ||
selector: | ||
io.kompose.service: gui | ||
type: NodePort | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
io.kompose.service: gui | ||
name: gui | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: gui | ||
strategy: {} | ||
template: | ||
metadata: | ||
labels: | ||
io.kompose.network/hobbit: "true" | ||
io.kompose.network/hobbit-core: "true" | ||
io.kompose.service: gui | ||
spec: | ||
hostNetwork: true | ||
nodeSelector: | ||
node-role: system | ||
containers: | ||
- env: | ||
- name: CHECK_REALM_URL | ||
value: "false" | ||
- name: ELASTICSEARCH_HOST | ||
value: elasticsearch | ||
- name: ELASTICSEARCH_HTTP_PORT | ||
value: "9200" | ||
- name: HOBBIT_RABBIT_HOST | ||
value: 192.168.210.214 | ||
- name: KEYCLOAK_AUTH_URL | ||
value: "http://131.234.28.241:31058/auth" | ||
- name: KEYCLOAK_DIRECT_URL | ||
value: "http://131.234.28.241:31058/auth" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are these IPs configured like that? |
||
image: oluoniyide/hobbit-gui:1.0.5 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to change this before merging. |
||
imagePullPolicy: "" | ||
name: gui | ||
ports: | ||
- containerPort: 8080 | ||
resources: {} | ||
restartPolicy: Always |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: keycloak | ||
labels: | ||
app: keycloak | ||
spec: | ||
ports: | ||
- name: http | ||
port: 8080 | ||
targetPort: 8080 | ||
nodePort: 31058 | ||
selector: | ||
app: keycloak | ||
type: NodePort | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: keycloak | ||
namespace: default | ||
labels: | ||
app: keycloak | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: keycloak | ||
template: | ||
metadata: | ||
labels: | ||
app: keycloak | ||
spec: | ||
volumes: | ||
- name: task-pv-keycloak | ||
persistentVolumeClaim: | ||
claimName: keycloak-pv-claim | ||
nodeSelector: | ||
node-role: system | ||
containers: | ||
- name: keycloak | ||
volumeMounts: | ||
- mountPath: /opt/jboss/keycloak/standalone/data/db | ||
name: task-pv-keycloak | ||
image: jboss/keycloak:9.0.0 | ||
env: | ||
- name: DB_VENDOR | ||
value: h2 | ||
- name: KEYCLOAK_USER | ||
value: "admin" | ||
- name: KEYCLOAK_PASSWORD | ||
value: "admin" | ||
- name: PROXY_ADDRESS_FORWARDING | ||
value: "false" | ||
- name: JAVA_TOOLS_OPTS | ||
value: "-Djboss.as.management.blocking.timeout=3600" | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
- name: https | ||
containerPort: 8443 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
io.kompose.service: platform-controller | ||
name: platform-controller | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: platform-controller | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
io.kompose.network/hobbit-core: "true" | ||
io.kompose.service: platform-controller | ||
spec: | ||
nodeSelector: | ||
node-role: benchmark | ||
containers: | ||
- env: | ||
- name: DEPLOY_ENV | ||
value: testing | ||
- name: GITLAB_USER | ||
value: oluoniyide | ||
- name: GITLAB_EMAIL | ||
value: oluoniyide@yahoo.com | ||
- name: GITLAB_TOKEN | ||
value: zRmVRQiodtu47Sj31Jmu | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please tell me that this is not your real token.... you should never upload a security token to git!!! 😱 |
||
- name: HOBBIT_RABBIT_EXPERIMENTS_HOST | ||
value: 131.234.28.241:31060 | ||
- name: HOBBIT_RABBIT_HOST | ||
value: 131.234.28.241:31060 | ||
- name: HOBBIT_REDIS_HOST | ||
value: 192.168.210.211 | ||
- name: SWARM_NODE_NUMBER | ||
value: "1" | ||
image: oluoniyide/platformcontroller:3.2.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to change this before merging. |
||
imagePullPolicy: "" | ||
name: platform-controller | ||
resources: {} | ||
# volumeMounts: | ||
# - mountPath: /var/run/docker.sock | ||
# name: docker-sock | ||
restartPolicy: Always | ||
serviceAccountName: "" | ||
# volumes: | ||
# - name: docker-sock | ||
# hostPath: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's better to keep
sudo
out of Makefile? It's usually possible to just runsudo make ...
instead, if required.