-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add namespace.yaml to respect single stream per document
- Loading branch information
Showing
9 changed files
with
24 additions
and
42 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 |
---|---|---|
|
@@ -48,29 +48,18 @@ jobs: | |
with: | ||
directory: config/manifests | ||
config: ${GITHUB_WORKSPACE}/.github/config_files/config_lint.yaml | ||
version: $KUBELINTER_VERSION | ||
version: $KUBELINTER_VERSION | ||
|
||
- name: Scan directory ./config/samples/ with kube-linter | ||
uses: stackrox/[email protected] | ||
with: | ||
directory: config/samples | ||
config: ${GITHUB_WORKSPACE}/.github/config_files/config_lint.yaml | ||
version: $KUBELINTER_VERSION | ||
version: $KUBELINTER_VERSION | ||
|
||
- name: Scan directory ./config/scorecard/ with kube-linter | ||
uses: stackrox/[email protected] | ||
with: | ||
directory: config/scorecard | ||
config: ${GITHUB_WORKSPACE}/.github/config_files/config_lint.yaml | ||
version: $KUBELINTER_VERSION | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
version: $KUBELINTER_VERSION |
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
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,8 +1,9 @@ | ||
resources: | ||
- namespace.yaml | ||
- manager.yaml | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
images: | ||
- name: memgraph-kubernetes-operator | ||
newName: memgraph/kubernetes-operator | ||
newTag: 0.0.2 | ||
newTag: 0.0.3 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: memgraph-operator-system |
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 |
---|---|---|
|
@@ -2,28 +2,21 @@ | |
|
||
All described installation options will run the Operator inside the cluster. | ||
|
||
## Option I: Install using Makefile | ||
|
||
Make sure to clone this repository with its submodule (helm-charts). | ||
|
||
```bash | ||
git clone --recurse-submodules [email protected]:memgraph/kubernetes-operator.git | ||
``` | ||
|
||
After this you can start your operator with a single command: | ||
## Install K8 resources | ||
|
||
```bash | ||
make deploy | ||
kubectl apply -k config/default | ||
``` | ||
|
||
This command will use operator's image from Memgraph's DockerHub and create all necessary Kubernetes resources for running an operator. | ||
|
||
## Option II: Install using kubectl | ||
|
||
```bash | ||
kubectl apply -k config/default | ||
``` | ||
|
||
## Verify installation | ||
|
||
Installation using any of options described above will cause creating Kubernetes ServiceAccount, RoleBinding, Role, Deployment and Pods all in newly created all in newly created all in newly created | ||
|
@@ -54,7 +47,7 @@ export MEMGRAPH_ORGANIZATION_NAME="<YOUR_ORGANIZATION_NAME>" | |
export MEMGRAPH_ENTERPRISE_LICENSE="<MEMGRAPH_ENTERPRISE_LICENSE>" | ||
``` | ||
|
||
Start Memgraph HA cluster with `envsubst < config/samples/memgraph_v1_ha.yaml | kubectl apply -f -`. (The `envsubst command` is a part of the gettext package.) | ||
Start Memgraph HA cluster with `envsubst < config/samples/memgraph_v1_ha.yaml | kubectl apply -f -`. (The `envsubst command` is a part of the `gettext` package.) | ||
Instead of using `envsubst` command, you can directly set environment variables in `config/samples/memgraph_v1_ha.yaml`. | ||
|
||
|
||
|
@@ -70,5 +63,6 @@ You can now find URL of any coordinator instances by running e.g `minikube servi | |
|
||
```bash | ||
kubectl delete -f config/samples/memgraph_v1_ha.yaml | ||
make undeploy / or kubectl delete -k config/default | ||
kubectl delete pvc --all # Or leave them if you want to use persistent storage | ||
kubectl delete -k config/default | ||
``` |
Submodule helm-charts
updated
3 files
+2 −0 | charts/memgraph/README.md | |
+8 −0 | charts/memgraph/templates/statefulset.yaml | |
+4 −0 | charts/memgraph/values.yaml |