From 7dcae4263355341dad93e50a03bb363c1b9f4234 Mon Sep 17 00:00:00 2001 From: marcel-dempers Date: Wed, 20 Jul 2022 09:13:20 +1000 Subject: [PATCH] datree updates --- kubernetes/datree/README.md | 84 ++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/kubernetes/datree/README.md b/kubernetes/datree/README.md index 237b981..ca7c259 100644 --- a/kubernetes/datree/README.md +++ b/kubernetes/datree/README.md @@ -166,6 +166,47 @@ datree test kubernetes/datree/example/deployment.yaml -p production For a new policy, we notice that 0 rules are enabled, so now we have the flexibility to set up the rules we want to protect this environment.
+## Helm + +What if I don't use `kubectl` and use `helm` instead ?
+Let's install `helm` in our container
+ +``` +apk add tar git +curl -L https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz -o /tmp/helm.tar.gz && \ +tar -xzf /tmp/helm.tar.gz -C /tmp && \ +chmod +x /tmp/linux-amd64/helm && \ +mv /tmp/linux-amd64/helm /usr/local/bin/helm + +``` + +Let's install the `helm` plugin for `datree`
+ +``` +helm plugin install https://github.com/datreeio/helm-datree + +``` + +Now we can test a `helm` chart we have in our repo from my `helm` tutorial
+ +``` + +cd kubernetes/helm + +helm datree test example-app \ +-- --values ./example-app/example-app-01.values.yaml +``` + +## Kustomize + +What if I don't use `helm` and use `kustomize` instead ?
+Datree has out the box built-in `kustomize` support
+Let's test our `kustomize` template from a video I did on `kustomize` + +``` +datree kustomize test .\kubernetes\kustomize\ +``` + # CI/CD examples We can even run datree in GitHub Actions and various [CI/CD integrations](https://hub.datree.io/cicd-examples).
@@ -342,45 +383,4 @@ The following cluster resources in namespace 'examples' were checked: deployment.apps/example-deploy -``` - -## Helm - -What if I don't use `kubectl` and use `helm` instead ?
-Let's install `helm` in our container
- -``` -apk add tar git -curl -L https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz -o /tmp/helm.tar.gz && \ -tar -xzf /tmp/helm.tar.gz -C /tmp && \ -chmod +x /tmp/linux-amd64/helm && \ -mv /tmp/linux-amd64/helm /usr/local/bin/helm - -``` - -Let's install the `helm` plugin for `datree`
- -``` -helm plugin install https://github.com/datreeio/helm-datree - -``` - -Now we can test a `helm` chart we have in our repo from my `helm` tutorial
- -``` - -cd kubernetes/helm - -helm datree test example-app \ --- --values ./example-app/example-app-01.values.yaml -``` - -## Kustomize - -What if I don't use `helm` and use `kustomize` instead ?
-Datree has out the box built-in `kustomize` support
-Let's test our `kustomize` template from a video I did on `kustomize` - -``` -datree kustomize test .\kubernetes\kustomize\ -``` +``` \ No newline at end of file