Mastering Infinispan Cluster & Cache Setup with Operator

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • Infinispan is an open-source, distributed in-memory data grid and caching solution that provides fast access to large datasets across clusters of commodity hardware. We start by deploying the Infinispan Operator, which simplifies the management of Infinispan clusters on Kubernetes. The operator automates the deployment, scaling, and maintenance of Infinispan instances.
    Refer Infinispan operator in this link
    operatorhub.io...
    ‪@configjavatech‬
    #infinispan #kubernetes #cluster
    Commands
    ------------------
    To start kubernetes cluster
    --------------------------------------------
    Configure cpus and memory in the below kubernetes single node cluster create command
    minikube start -p infinispanminikube --cpus 12 --memory 12g
    To create operator lifecycle manager
    -----------------------------------------------------------
    kubectl create -f raw.githubuser...
    kubectl create -f raw.githubuser...
    To Install Infinispan Operator subscribe to olm in namespace operator
    ---------------------------------------------------------------------
    kubectl create -f operatorhub.io...
    To create infinispan namespace
    -------------------------------------------------
    kubectl create namespace infinispan
    To Install Infinispan Cluster
    --------------------------------------------
    apiVersion: infinispan.org/v1
    kind: Infinispan
    metadata:
    name: infinispan-cluster
    namespace: infinispan
    spec:
    replicas: 2
    version: 15.0.4
    service:
    type: DataGrid
    expose:
    type: LoadBalancer
    To create tunnel for loadbalancer services
    --------------------------------------------------------------------
    minikube tunnel -p infinispanminikube
    To configure cache
    --------------------------------
    apiVersion: infinispan.org/v2alpha1
    kind: Cache
    metadata:
    name: distributed-cache
    spec:
    clusterName: infinispan-cluster
    name: distcache
    templateName: org.infinispan.DIST_SYNC
    apiVersion: infinispan.org/v2alpha1
    kind: Cache
    metadata:
    name: replicated-cache
    spec:
    clusterName: infinispan-cluster
    name: replcache
    templateName: org.infinispan.REPL_SYNC
    To configure and apply infinispan batch
    ----------------------------------------------------------------
    apiVersion: infinispan.org/v2alpha1
    kind: Batch
    metadata:
    name: infinispan-batch-inline
    spec:
    cluster: infinispan-cluster
    config: |
    create cache --template=org.infinispan.DIST_SYNC batchcache
    put --cache=batchcache hello world
    put --cache=batchcache hola mundo

Комментарии • 1