Skip to content

Curated set of policies for Advanced Cluster Management for Kubernetes

Notifications You must be signed in to change notification settings

mbpavan/acm-policies

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

acm-policies

Kustomizable Policies and Channel/Subscription objects for Advanced Cluster Management. This project covers use cases commonly found in consulting engagements and are provided to make configuration and enforcement adhere to Red Hat Consulting's best practices.

There are also product focused policies found in the upstream project (Open Cluster Management) called policy-collection. The product team will periodically check here for useful policies.

Creating new Policies

For each use case,

  1. Create a unique usecase folder under policies/
  2. Create a README.md file under the folder to explain the actions and purpose of the collection of policies.
  3. Create a base folder for base files: policies, placement rules, and bindings.
  4. Create an overlay folder with at least 1 overlay example on how to kustomize it.
  5. Create subscription(s) for the overlay examples.
acm-policies
├── channel
│   ├── 01_namespace.yml
│   └── 02_channel.yml
├── policies
│   └── example
|       ├── USECASE.md
│       ├── base
│       │   ├── bindings.yml
│       │   ├── kustomization.yml
│       │   ├── placementrule.yml
│       │   └── policy-namespace-custom.yml
│       ├── overlays
│       │   ├── pets
│       │   │   ├── kustomization.yml
│       │   │   └── namespaces.yml
│       │   └── plants
│       │       ├── kustomization.yml
│       │       └── namespaces.yml
│       └── subscriptions
│           ├── sub-example-base.yml
│           ├── sub-example-pets.yml
│           └── sub-example-plants.yml
└── README.md

Using Policies in ACM

  1. Fork the project and update the channel and namespace yml to leverage your new endpoint.
  2. Create an overlay in the same manner as the example overlay.
  3. Create patches that tailor the policy to your environment.
  4. Create a subscription using the new overlay.
  5. Apply the channel and namespace to the hub cluster.
$ oc apply -f channel/
  1. Apply the subscription to the hub cluster.
$ oc apply -f subscriptions/my-subscription.yml

About

Curated set of policies for Advanced Cluster Management for Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published