Skip to content

Commit

Permalink
merge k8s and openshift
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaofeng Sun committed Sep 14, 2018
1 parent d5b7d8b commit 2091bff
Show file tree
Hide file tree
Showing 28 changed files with 43 additions and 454 deletions.
File renamed without changes.
File renamed without changes.
19 changes: 9 additions & 10 deletions README.md
Expand Up @@ -25,29 +25,27 @@ Clone or download this repository.
To install the chart with the release name `my-release` and image pull secret:

```console
$ helm install --name my-release --namespace neuvector ./neuvector-helm/k8s/ --set imagePullSecrets=regsecret
$ helm install --name my-release --namespace neuvector ./neuvector-helm/ --set imagePullSecrets=regsecret
```

If you already pulled neuvector images and saved in your private registry:

```console
$ helm install --name my-release --namespace neuvector ./neuvector-helm/k8s/ --set registry=your-private-registry
$ helm install --name my-release --namespace neuvector ./neuvector-helm/ --set registry=your-private-registry
```

If you already installed neuvector in your cluster without using helm, please `kubectl delete -f your-neuvector-yaml.yaml` before trying to use helm install.

## Openshift

Replace k8s with openshift, for example:

```console
$ helm install --name my-release --namespace neuvector ./neuvector-helm/openshift/ --set registry=your-private-registry
$ helm install --name my-release --namespace neuvector ./neuvector-helm/ --set openshift=true,registry=your-private-registry
```

## Rolling upgrade

```console
$ helm upgrade my-release --set tag=2.2.0 ./neuvector-helm/k8s/
$ helm upgrade my-release --set tag=2.2.0 ./neuvector-helm/
```

## Uninstalling the Chart
Expand All @@ -66,6 +64,7 @@ The following table lists the configurable parameters of the NeuVector chart and

Parameter | Description | Default
--------- | ----------- | -------
`openshift` | If deploying in Openshift, set this to true | `false`
`registry` | image registry | `docker.io`
`tag` | image tag for controller enforcer manager | `latest`
`imagePullSecrets` | image pull secret | `{}`
Expand All @@ -77,7 +76,7 @@ Parameter | Description | Default
`manager.enabled` | If true, create manager | `true`
`manager.image.repository` | manager image repository | `neuvector/manager`
`manager.env.ssl` | enable/disable HTTPS and disable/enable HTTP access | `on`
`manager.svc.type` | manager service type | `NodePort`
`manager.svc.type` | set manager service type for native Kubernetes | `NodePort`
`cve.updater.enabled` | If true, create cve updater | `true`
`cve.updater.image.repository` | cve updater image repository | `neuvector/updater`
`cve.updater.image.tag` | image tag for cve updater | `latest`
Expand All @@ -86,16 +85,16 @@ Parameter | Description | Default
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

```console
$ helm install --name my-release --namespace neuvector ./neuvector-helm/k8s/ --set manager.env.ssl=off
$ helm install --name my-release --namespace neuvector ./neuvector-helm/ --set manager.env.ssl=off
```

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

```console
$ helm install --name my-release --namespace neuvector ./neuvector-helm/k8s/ -f values.yaml
$ helm install --name my-release --namespace neuvector ./neuvector-helm/ -f values.yaml
```

> **Tip**: You can use the default [values.yaml](k8s/values.yaml)
> **Tip**: You can use the default [values.yaml](values.yaml)
## RBAC Configuration

Expand Down
31 changes: 0 additions & 31 deletions k8s/templates/clusterrole.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions k8s/templates/clusterrolebinding.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions k8s/templates/manager-service.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions k8s/values.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions openshift/.helmignore

This file was deleted.

7 changes: 0 additions & 7 deletions openshift/Chart.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions openshift/templates/NOTES.txt

This file was deleted.

32 changes: 0 additions & 32 deletions openshift/templates/_helpers.tpl

This file was deleted.

85 changes: 0 additions & 85 deletions openshift/templates/controller-deployment.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions openshift/templates/controller-service.yaml

This file was deleted.

0 comments on commit 2091bff

Please sign in to comment.