This repository was archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
[Deployment] DPM and NCM to use standalone Ignite DB. #732
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
9645772
Documentation update
pkommoju 183c36a
Apply changes suggested in review
pkommoju 4896515
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju f170e1e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju bcbf7b1
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju efc5b6e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju c785697
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju d213c03
Merge branch 'master' of https://github.com/pkommoju/alcor
0f56454
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 4a2a382
Merge branch 'master' of https://github.com/pkommoju/alcor
pkommoju 7f93fe3
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 8d6dd0e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju b19d428
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
kevin-zhonghao 539d0c0
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 6a9a1c6
Merge branch 'master' of https://github.com/pkommoju/alcor
pkommoju 19430b2
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 1d7ef7e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju cd1fec6
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju e57abe4
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 1b63054
Add missing file
pkommoju fe81008
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 118dd53
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 7d9a2e5
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 3884a44
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 0b5cd11
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 3f094be
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju bb777ec
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju c0e8c2d
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 206abc7
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju fab8a00
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 69268a3
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 335b9b8
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 6a95d98
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju a8fce0e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 884412b
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju ea547f7
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 3e5b025
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju c7a29f1
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju ded8198
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju df00783
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju fd20eef
Give DPM and NCM their own DB - 1
pkommoju 24ff493
Remove NodeInfo from NCM and DPM ignite config files. Add clean up of…
pkommoju 8ec971b
Added node creation debug messages in NCM (remove after verfying)
pkommoju 53637a7
Fix the grpc port name and expose service port in NCM K8S yaml file
pkommoju 0514a26
Raise DEBUG log level inv NCM (TEMP)
pkommoju f2b9b5d
Raise DEBUG log level inv NCM (TEMP) in yaml file too
pkommoju 6b80df2
Just add 8080 and 9014 in NCM k8s yaml file
pkommoju c869975
Start dpm and ncm ignite instances
pkommoju 9befa96
Address code review comments and remove temporary changes
pkommoju 868cd19
Add MIT license to all K8S yaml files
pkommoju 61d7ce4
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju af0aa85
Add command to activate Ignite instances for DPM and NCM
pkommoju 28eef6b
Move the ignite activate to correct place
pkommoju File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | ||
pkommoju marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.