Giter Club home page Giter Club logo

mgmtk8sctrlr's Introduction

Assumptions and Prerequisites

  1. You are deploying mgmtk8sctrlr in the "infiotmgmtproxy" namespace for the MSP tenant "acme".
  2. You have already created "infiotmgmtproxy" namespace in your k8s cluster.
  3. The MSP tenant portal [https://acme.infiot.net] is live.
  4. You have created a node-pool dedicated for hosting Infiot's mgmtproxy gateway with following labels and taints
Taints:             infiot.com/mgmtproxy=mgmtgw-nodes:NoExecute
                    infiot.com/mgmtproxy=mgmtgw-nodes:NoSchedule
Labels:             infiot.com/mgmtproxy=mgmtgw-nodes

Deploying Infiot's mgmtk8sctrlr

  1. Login into the MSP tenant (https://acme.infiot.net) as system administrator and create a token with following privileges.
[
  {
    "rap_resource": "",
    "rap_privs": [
      "privTenantRead",
      "privTenantMSP",
      "privSiteCreate",
      "privSiteRead",
      "privSiteWrite",
      "privSiteDelete",
      "privSiteToken",
      "privSiteRestart",
      "privSiteOpsRead",
      "privSiteOpsWrite",
      "privSiteName",
      "privAuditRecordCreate"
    ]
  }
]
  1. Create or update the secret using following command sequence
kubectl -n infiotmgmtproxy \
    create secret generic store-mgmtk8sctrlr \
    --from-literal=token=<SECRET_FROM_STEP_1>
kubectl -n infiotmgmtproxy \
    create secret generic store-mgmtk8sctrlr \
    --from-literal=url=https://acme.infiot.net
  1. Deploy the Traefik load balancer in the "infiotmgmtproxy" namespace
kubectl -n infiotmgmtproxy apply -f https://raw.githubusercontent.com/anupamfff/mgmtk8sctrlr/master/traefik-crd.yaml
kubectl -n infiotmgmtproxy apply -f https://raw.githubusercontent.com/anupamfff/mgmtk8sctrlr/master/traefik-deployment.yaml

  1. Create the lan device service configmap

Down the sample configmap and customize as per your requirements

wget https://raw.githubusercontent.com/anupamfff/mgmtk8sctrlr/master/mgmtk8sctrlr-config-example.yaml

Customize the local copy "mgmtk8sctrlr-config-example.yaml" as per your requirements and apply

kubectl -n infiotmgmtproxy apply -f ./mgmtk8sctrlr-config-example.yaml
  1. Deploy the mgmtk8sctrl in the "infiotmgmtproxy" namespace
kubectl -n infiotmgmtproxy apply -f https://raw.githubusercontent.com/anupamfff/mgmtk8sctrlr/master/mgmtk8sctrlr-deployment.yaml

mgmtk8sctrlr's People

Contributors

anupamfff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.