https://github.com/rssnyder/harness-ccm-autostopping
https://github.com/rssnyder/harness-ccm-autostopping
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rssnyder/harness-ccm-autostopping
- Owner: rssnyder
- Created: 2024-02-21T16:58:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T20:53:01.000Z (about 2 years ago)
- Last Synced: 2025-01-28T12:39:44.882Z (over 1 year ago)
- Language: Smarty
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# harness-ccm-autostopping
> [!CAUTION]
> development of this chart has moved to [rssnyder/charts](https://github.com/rssnyder/charts)
helm chart for the kubernetes autostopping controller and router
this chart deploys the components in red

## usage
> :warning: You must have the target cluster set up in Harness with a K8s and CCM K8s connector before you deploy this chart
install repo
`helm repo add harness-ccm-autostopping https://rssnyder.github.io/harness-ccm-autostopping`
update repo
`helm repo update harness-ccm-autostopping`
deploy chart (you must set your namespace to `harness-autostopping`)
```
helm upgrade -i harness-autostopping --namespace harness-autostopping --create-namespace \
harness-ccm-autostopping/harness-ccm-autostopping \
--set accountId=wlgELJ0TTre5aZhzpt8gVA \
--set connectorId=_lab_ccm \
--set apiToken=sat.wlgELJ0TTre5aZhzpt8gVA.xxxxxxxxxxxx
```
- accountId: your Harness account ID
- connectorId: the ID for the CCM K8s connector for this cluster
- apiToken: a Harness API key with at least ccm:read for all account level resources
## development notes
things that must be hard-coded:
namespace: `harness-autostopping`
service name for router: `autostopping-router`
service name for controller: `autostopping-controller` (therefor also hard-coded in the router configmap)
deployment name for controller: `autostopping-controller`
configmap: `harness-autostopping-enforcement`
secret name for api key: `harness-api-key`