GithubHelp home page GithubHelp logo

acm-acs's Introduction

Install ACM on hub cluster

Prereqs to be run from CLI

clone git repo

mkdir ~/git
cd ~/git
git clone https://github.com/mmwillingham/acm-acs.git
cd acm-acs

To install ACM on hub cluster

(Check version of ACM in subscription within the file installhub.sh)

. install-acm/installhub.sh

Create clusterset for hub

oc apply -f install-acm/create-clusterset-hub.yaml

Assign new clusterset to hub cluster

oc label --overwrite managedclusters.cluster.open-cluster-management.io local-cluster cluster.open-cluster-management.io/clusterset=hub

Add kubeadmin (and other desired users) to subscription-admin cluster-role-binding

oc apply -f install-acm/patch-subscription-admin.yaml

Now create the ACM application subscription

Create acm-policies namespace

oc new-project acm-policies

Create ACM application to run policies

oc apply -f base/main-policy.yaml

The following steps are optional.

For policy generator - if using native ACM application subscription, no need to enable policyGenerator - it is already present.

To test at cli - follow these steps (examples below)

Docs

These steps are shorter for installing policyGenerator

Install PolicyGenerator

mkdir -p ${HOME}/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator
curl -L \
  -o ${HOME}/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator/PolicyGenerator \
  https://github.com/stolostron/policy-generator-plugin/releases/download/v1.8.0/linux-amd64-PolicyGenerator
chmod +x ${HOME}/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator/PolicyGenerator

Test at CLI - two methods

As a plugin

cd base kustomize build --enable-alpha-plugins

Directly at a policyGenerator config

PolicyGenerator policygenerator.yaml

Install PolicyGenerator (Older steps)

Download PolicyGenerator to ~/Downloads

mkdir -p ${HOME}/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator
chmod +x ~/Downloads/linux-amd64-PolicyGenerator
mv linux-amd64-PolicyGenerator ${HOME}/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator/PolicyGenerator
sudo dnf install go # may need to connect to VPN first
GOBIN=${HOME}/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator \
go install open-cluster-management.io/policy-generator-plugin/cmd/PolicyGenerator@latest

acm-acs's People

Contributors

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