Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
9645772
Documentation update
pkommoju May 12, 2021
183c36a
Apply changes suggested in review
pkommoju May 22, 2021
4896515
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju May 26, 2021
f170e1e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju May 28, 2021
bcbf7b1
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju May 29, 2021
efc5b6e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jun 1, 2021
c785697
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jun 8, 2021
d213c03
Merge branch 'master' of https://github.com/pkommoju/alcor
Jun 8, 2021
0f56454
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jun 8, 2021
4a2a382
Merge branch 'master' of https://github.com/pkommoju/alcor
pkommoju Jun 9, 2021
7f93fe3
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jun 10, 2021
8d6dd0e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jun 15, 2021
b19d428
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
kevin-zhonghao Jun 16, 2021
539d0c0
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jun 22, 2021
6a9a1c6
Merge branch 'master' of https://github.com/pkommoju/alcor
pkommoju Jun 22, 2021
19430b2
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jul 1, 2021
1d7ef7e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jul 2, 2021
cd1fec6
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jul 6, 2021
e57abe4
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jul 20, 2021
1b63054
Add missing file
pkommoju Jul 21, 2021
fe81008
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jul 21, 2021
118dd53
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jul 23, 2021
7d9a2e5
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Aug 2, 2021
3884a44
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Aug 4, 2021
0b5cd11
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Aug 6, 2021
3f094be
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Aug 23, 2021
bb777ec
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Sep 10, 2021
c0e8c2d
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Sep 24, 2021
206abc7
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Oct 8, 2021
fab8a00
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Oct 22, 2021
69268a3
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Oct 29, 2021
335b9b8
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Nov 5, 2021
6a95d98
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Nov 29, 2021
a8fce0e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Nov 29, 2021
884412b
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Dec 2, 2021
ea547f7
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Dec 3, 2021
3e5b025
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Dec 6, 2021
c7a29f1
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Dec 13, 2021
ded8198
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Dec 21, 2021
df00783
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jan 12, 2022
fd20eef
Give DPM and NCM their own DB - 1
pkommoju Jan 12, 2022
24ff493
Remove NodeInfo from NCM and DPM ignite config files. Add clean up of…
pkommoju Jan 14, 2022
8ec971b
Added node creation debug messages in NCM (remove after verfying)
pkommoju Jan 17, 2022
53637a7
Fix the grpc port name and expose service port in NCM K8S yaml file
pkommoju Jan 17, 2022
0514a26
Raise DEBUG log level inv NCM (TEMP)
pkommoju Jan 18, 2022
f2b9b5d
Raise DEBUG log level inv NCM (TEMP) in yaml file too
pkommoju Jan 18, 2022
6b80df2
Just add 8080 and 9014 in NCM k8s yaml file
pkommoju Jan 18, 2022
c869975
Start dpm and ncm ignite instances
pkommoju Jan 18, 2022
9befa96
Address code review comments and remove temporary changes
pkommoju Jan 18, 2022
868cd19
Add MIT license to all K8S yaml files
pkommoju Jan 19, 2022
61d7ce4
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju Jan 19, 2022
af0aa85
Add command to activate Ignite instances for DPM and NCM
pkommoju Jan 19, 2022
28eef6b
Move the ignite activate to correct place
pkommoju Jan 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kubernetes/createYaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then

echo "Create yaml files done"


numberOfRnningPods="foo"
numberOfAllPods="bar"

Expand All @@ -44,6 +45,8 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
kubectl exec -it ignite-alcor-ip-0 -n ignite-alcor-ip -c ignite-alcor-ip-node -- /opt/ignite/apache-ignite/bin/control.sh --activate
kubectl exec -it ignite-alcor-mac-0 -n ignite-alcor-mac -c ignite-alcor-mac-node -- /opt/ignite/apache-ignite/bin/control.sh --activate
kubectl exec -it ignite-alcor-port-0 -n ignite-alcor-port -c ignite-alcor-port-node -- /opt/ignite/apache-ignite/bin/control.sh --activate
kubectl exec -it ignite-alcor-dpm-0 -n ignite-alcor-dpm -c ignite-alcor-dpm-node -- /opt/ignite/apache-ignite/bin/control.sh --activate
kubectl exec -it ignite-alcor-ncm-0 -n ignite-alcor-ncm -c ignite-alcor-ncm-node -- /opt/ignite/apache-ignite/bin/control.sh --activate


#cd apache-ignite/bin/
Expand Down
14 changes: 14 additions & 0 deletions kubernetes/db/ignite/ignite_alcor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# MIT License
# Copyright(c) 2020 Futurewei Cloud
#
# Permission is hereby granted,
# free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
145 changes: 145 additions & 0 deletions kubernetes/db/ignite/ignite_alcor_dpm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# MIT License
# Copyright(c) 2020 Futurewei Cloud
#
# Permission is hereby granted,
# free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ignite-alcor-dpm
roleRef:
kind: ClusterRole
name: ignite-alcor-dpm
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor-dpm
namespace: ignite-alcor-dpm
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: ignite-alcor-dpm
namespace: ignite-alcor-dpm
rules:
- apiGroups:
- ""
resources: # Here are resources you can access
- pods
- endpoints
verbs: # That is what you can do with them
- get
- list
- watch
---
apiVersion: v1
kind: Namespace
metadata:
name: ignite-alcor-dpm
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ignite-alcor-dpm
namespace: ignite-alcor-dpm
---
apiVersion: v1
kind: Service
metadata:
# The name must be equal to TcpDiscoveryKubernetesIpFinder.serviceName
name: ignite-alcor-dpm-service
# The name must be equal to TcpDiscoveryKubernetesIpFinder.namespaceName
namespace: ignite-alcor-dpm
labels:
app: ignite-alcor-dpm
spec:
type: LoadBalancer
ports:
- name: rest
port: 8080
targetPort: 8080
- name: sql
port: 10804
targetPort: 10800
- name: thinclients
port: 10900
targetPort: 10900
selector:
app: ignite-alcor-dpm
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: ignite-alcor-dpm
name: ignite-alcor-dpm
namespace: ignite-alcor-dpm
spec:
selector:
matchLabels:
app: ignite-alcor-dpm
serviceName: ignite-alcor-dpm-service
replicas: 1
template:
metadata:
labels:
app: ignite-alcor-dpm
spec:
serviceAccountName: ignite-alcor-dpm
containers:
- name: ignite-alcor-dpm-node
image: ignite_alcor:lib8
imagePullPolicy: IfNotPresent
#resources:
#requests:
#cpu: "16"
env:
- name: OPTION_LIBS
value: ignite-kubernetes,ignite-rest-http
- name: CONFIG_URI
# value : https://raw.githubusercontent.com/pkommoju/alcor/dpm_ncm_own_db/kubernetes/db/ignite/ignite_dpm_config.xml
value: https://raw.githubusercontent.com/futurewei-cloud/alcor/master/kubernetes/db/ignite/ignite_dpm_config.xml
- name: IGNITE_QUIET
value: "false"
- name: JVM_OPTS
value: "-Djava.net.preferIPv4Stack=true"
#- name: JVM_OPTS
#value: "-Djava.net.preferIPv4Stack=true
#-server
#-Xms20g
#-Xmx20g
#-XX:+AlwaysPreTouch
#-XX:+UseG1GC
#-XX:+ScavengeBeforeFullGC
#-XX:+DisableExplicitGC"
ports:
- name: port8080
containerPort: 8080
- name: port11211
containerPort: 11211 # REST port number.
- name: port47100
containerPort: 47100 # communication SPI port number.
- name: port47500
containerPort: 47500 # discovery SPI port number.
- name: port49112
containerPort: 49112 # JMX port number.
- name: port10800
containerPort: 10800 # SQL port number.
- name: port10900
containerPort: 10900 # Thin clients port number.
volumeMounts:
- name: ignite-alcor-dpm-config-volume
mountPath: /opt/dpm
volumes:
- name: ignite-alcor-dpm-config-volume
hostPath:
path: /root/work/dpm
14 changes: 14 additions & 0 deletions kubernetes/db/ignite/ignite_alcor_ip.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# MIT License
# Copyright(c) 2020 Futurewei Cloud
#
# Permission is hereby granted,
# free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
14 changes: 14 additions & 0 deletions kubernetes/db/ignite/ignite_alcor_mac.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# MIT License
# Copyright(c) 2020 Futurewei Cloud
#
# Permission is hereby granted,
# free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
145 changes: 145 additions & 0 deletions kubernetes/db/ignite/ignite_alcor_ncm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# MIT License
# Copyright(c) 2020 Futurewei Cloud
#
# Permission is hereby granted,
# free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ignite-alcor-ncm
roleRef:
kind: ClusterRole
name: ignite-alcor-ncm
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ignite-alcor-ncm
namespace: ignite-alcor-ncm
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: ignite-alcor-ncm
namespace: ignite-alcor-ncm
rules:
- apiGroups:
- ""
resources: # Here are resources you can access
- pods
- endpoints
verbs: # That is what you can do with them
- get
- list
- watch
---
apiVersion: v1
kind: Namespace
metadata:
name: ignite-alcor-ncm
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ignite-alcor-ncm
namespace: ignite-alcor-ncm
---
apiVersion: v1
kind: Service
metadata:
# The name must be equal to TcpDiscoveryKubernetesIpFinder.serviceName
name: ignite-alcor-ncm-service
# The name must be equal to TcpDiscoveryKubernetesIpFinder.namespaceName
namespace: ignite-alcor-ncm
labels:
app: ignite-alcor-ncm
spec:
type: LoadBalancer
ports:
- name: rest
port: 8080
targetPort: 8080
- name: sql
port: 10805
targetPort: 10800
- name: thinclients
port: 10900
targetPort: 10900
selector:
app: ignite-alcor-ncm
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: ignite-alcor-ncm
name: ignite-alcor-ncm
namespace: ignite-alcor-ncm
spec:
selector:
matchLabels:
app: ignite-alcor-ncm
serviceName: ignite-alcor-ncm-service
replicas: 1
template:
metadata:
labels:
app: ignite-alcor-ncm
spec:
serviceAccountName: ignite-alcor-ncm
containers:
- name: ignite-alcor-ncm-node
image: ignite_alcor:lib8
imagePullPolicy: IfNotPresent
#resources:
#requests:
#cpu: "16"
env:
- name: OPTION_LIBS
value: ignite-kubernetes,ignite-rest-http
- name: CONFIG_URI
#value: https://raw.githubusercontent.com/pkommoju/alcor/dpm_ncm_own_db/kubernetes/db/ignite/ignite_ncm_config.xml
value: https://raw.githubusercontent.com/futurewei-cloud/alcor/master/kubernetes/db/ignite/ignite_ncm_config.xml
- name: IGNITE_QUIET
value: "false"
- name: JVM_OPTS
value: "-Djava.net.preferIPv4Stack=true"
#- name: JVM_OPTS
#value: "-Djava.net.preferIPv4Stack=true
#-server
#-Xms20g
#-Xmx20g
#-XX:+AlwaysPreTouch
#-XX:+UseG1GC
#-XX:+ScavengeBeforeFullGC
#-XX:+DisableExplicitGC"
ports:
- name: port8080
containerPort: 8080
- name: port11211
containerPort: 11211 # REST port number.
- name: port47100
containerPort: 47100 # communication SPI port number.
- name: port47500
containerPort: 47500 # discovery SPI port number.
- name: port49112
containerPort: 49112 # JMX port number.
- name: port10800
containerPort: 10800 # SQL port number.
- name: port10900
containerPort: 10900 # Thin clients port number.
volumeMounts:
- name: ignite-alcor-ncm-config-volume
mountPath: /opt/ncm
volumes:
- name: ignite-alcor-ncm-config-volume
hostPath:
path: /root/work/ncm
14 changes: 14 additions & 0 deletions kubernetes/db/ignite/ignite_alcor_port.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# MIT License
# Copyright(c) 2020 Futurewei Cloud
#
# Permission is hereby granted,
# free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
Loading