-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release 0.6.3 by forcing deploy to set config to /app (#21)
* make deploy use --config /app/opslevel-k8s.yaml * bump to ver 2024 3 4 * prefix v
- Loading branch information
Taimoor Ahmad
authored
Mar 4, 2024
1 parent
c6499dd
commit d0d5402
Showing
6 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## Issues | ||
|
||
<!-- paste an issue link here from github/gitlab --> | ||
|
||
## Changelog | ||
|
||
- [ ] List your changes here | ||
- [ ] Make a `changie` entry | ||
|
||
## Tophatting | ||
|
||
<!-- paste in CLI output, log messages or screenshots showing your change works --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/opslevel-k8s.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,50 @@ | ||
Kubernetes Sync | ||
--- | ||
|
||
This chart packages up [kubectl-opslevel](https://github.com/OpsLevel/kubectl-opslevel) and runs it as a `deployment` using the command `service reconcile` to attach to the Kubernetes event stream for any create and update events. These are then processed by the tool and resulting service data is sent OpsLevel. | ||
This chart for [kubectl-opslevel](https://github.com/OpsLevel/kubectl-opslevel) creates a deployment | ||
to run the app in the background using `$ kubectl-opslevel service reconcile`. | ||
|
||
Make sure you have the [OpsLevel Helm chart](https://github.com/OpsLevel/helm-charts) repository added then you can perform an install with: | ||
The app attaches to the Kubernetes event stream and listens for any create and update events. | ||
These are then processed by the tool and the resulting service data is sent OpsLevel. | ||
|
||
``` | ||
helm install sync opslevel/kubernetes-sync --namespace=opslevel --create-namespace --set-file sync.config=./opslevel-k8s.yaml --set apitoken=XXXXX | ||
Make sure you have the [OpsLevel Helm chart](https://github.com/OpsLevel/helm-charts) repository added. | ||
|
||
## Deploy | ||
|
||
```bash | ||
# double check that you are in the correct cluster | ||
kctx | ||
|
||
# double check that your config file is correct | ||
cat opslevel-k8s.yaml | ||
|
||
# export API token and desired namespace (defaults to 'opslevel') | ||
OPSLEVEL_API_TOKEN="..." NAMESPACE="..." | ||
|
||
# | ||
# IF INSTALLING FOR THE FIRST TIME: | ||
# | ||
helm install sync opslevel/kubernetes-sync \ | ||
--namespace="${NAMESPACE:-opslevel}" \ | ||
--create-namespace \ | ||
--set-file sync.config=./opslevel-k8s.yaml \ | ||
--set apitoken="$OPSLEVEL_API_TOKEN" | ||
|
||
# | ||
# RE-DEPLOYS: | ||
# | ||
helm upgrade sync opslevel/kubernetes-sync \ | ||
--namespace="${NAMESPACE:-opslevel}" \ | ||
--set-file sync.config=./opslevel-k8s.yaml \ | ||
--set apitoken="$OPSLEVEL_API_TOKEN" | ||
``` | ||
|
||
To upgrade | ||
## Deploy without using our public container registry | ||
|
||
To deploying using an image from your own registry, edit this line in [values.yaml](./values.yaml): | ||
|
||
``` | ||
helm upgrade --namespace=opslevel --set-file sync.config=./opslevel-k8s.yaml --set apitoken=XXXXX sync opslevel/kubernetes-sync | ||
image: public.ecr.aws/opslevel/kubectl-opslevel:v2024.3.4 | ||
``` | ||
|
||
and then deploy using `helm`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters