Giter Club home page Giter Club logo

manage-fleet-configuration's Introduction

Note

  1. This simple subscription deploys payload to the hub cluster. -
    • In the first example - it is deployed to a regular ACM hub
    • In the second example - it is deplyed to a ACM hub at Global Level and that propagates it to the ACM hub that it manages (or lets call it the managed Hub).
    • In this case the payload is a bunch of policies.
    • All the policies have their placements set to whereever they are needed to be deployed.
  2. Starting in 2.4 you need to be Subscription-Admin. One option is to execute: community/CM-Configuration-Management/policy-configure-subscription-admin-hub from the command-line and set it to enforce. Or follow the oc edit clusterrolebinding shown below.
  3. This accompanying repository is used.

Steps

  1. Log on to the cluster using oc login .

  2. Enable subscription-admin for the user who just connected to the ACM hub.

    Command:

    oc edit clusterrolebinding open-cluster-management:subscription-admin
    

    Add the following to the bottom of the clusterRoleBinding (the user here is kube:admin).:

    subjects:
    - apiGroup: rbac.authorization.k8s.io
      kind: User
      name: kube:admin
    

If deploying into regular ACM hub (or managed hub if being managed from Global Hub)

  1. kubectl apply -k deploy-to-acm-hub
    

    Note: The local placement syntax used in this example works even when self management is disabled in ACM hub.

If deploying into Global Hub

  1. kubectl apply -k deploy-to-global-hub
    

I

manage-fleet-configuration's People

Contributors

bjoydeep 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.