[
https://issues.apache.org/jira/browse/IGNITE-6241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500062#comment-16500062
]
Roman Guseinov commented on IGNITE-6241:
----------------------------------------
[~vveider], here is a little bit more detailed tutorial to deploy Ignite
cluster on Google Cloud Platform (Kubernetes):
1. Grant cluster-admin role to the current user:
{code}
$ kubectl create clusterrolebinding myname-cluster-admin-binding \
--clusterrole=cluster-admin \
--user=<email>
{code}
2. Create `apacheig` namespace:
{code}
$ kubectl create -f namespace.yaml
{code}
3. Create service account and grant permissions:
{code}
$ kubectl create -f sa.yaml
$ kubectl create -f role.yaml
$ kubectl create -f rolebind.yaml
{code}
4. Create a grid service:
{code}
$ kubectl create -f service.yaml
{code}
5. Deploy GridGain cluster (stateful set):
{code}
$ kubectl create -f grid.yaml
{code}
6. Connect to POD and activate cluster:
{code}
$ kubectl exec -it grid-0 --namespace=apacheig -- /bin/bash
$ cd /opt/ignite/apache-ignite-*
$ ./bin/control.sh --activate
{code}
YAML-files are attached: [^namespace.yaml] [^sa.yaml] [^role.yaml]
[^rolebind.yaml] [^service.yaml] [^grid.yaml] [^pds-config.xml]
> Integrate with Kubernetes StatefulSet to support Ignite Persistence
> -------------------------------------------------------------------
>
> Key: IGNITE-6241
> URL: https://issues.apache.org/jira/browse/IGNITE-6241
> Project: Ignite
> Issue Type: New Feature
> Reporter: Denis Magda
> Assignee: Peter Ivanov
> Priority: Critical
> Fix For: 2.6
>
> Attachments: grid.yaml, namespace.yaml, pds-config.xml, role.yaml,
> rolebind.yaml, sa.yaml, service.yaml, tutorial_k8s.txt
>
>
> Ignite Kubernetes integration has to support StatefulSet which enables Ignite
> Persistence usage in Kubernetes deployments. More details are here:
> http://apache-ignite-users.70518.x6.nabble.com/Ignite-Persistence-on-Kubernetes-td16396.html
> See how it's done for Cassandra and MongoDB:
> * https://kubernetes.io/docs/tutorials/stateful-application/cassandra/
> * https://kubernetes.io/docs/tutorials/stateless-application/guestbook/
> We can reach out K8 folks and ask to add a prepared Ignite tutorial to the
> list.
> Good reading on the stateful set:
> https://lenadroid.github.io/posts/stateful-sets-kubernetes-azure.html
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)