Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update secrets naming #56

Merged
merged 6 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint-test-memgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'
run: |
kubectl create secret generic memgraph-secrets \
--from-literal=MEMGRAPH_USER=memgraph \
--from-literal=MEMGRAPH_PASSWORD=memgraph \
--from-literal=USER=memgraph \
--from-literal=PASSWORD=memgraph \
--namespace default

- name: Verify Kubernetes secrets
Expand Down
9 changes: 5 additions & 4 deletions charts/memgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The following table lists the configurable parameters of the Memgraph chart and
| `replicaCount` | Number of Memgraph instances to run. Note: no replication or HA support. | `1` |
| `affinity.nodeKey` | Key for node affinity (Preferred) | `""` |
| `affinity.nodeValue` | Value for node affinity (Preferred) | `""` |
| `nodeSelector` | Constrain which nodes your Memgraph pod is eligible to be scheduled on, based on the labels on the nodes. Left empty by default. | `{}` |
as51340 marked this conversation as resolved.
Show resolved Hide resolved
| `service.type` | Kubernetes service type | `ClusterIP` |
| `service.enableBolt` | Enable Bolt protocol | `true` |
| `service.boltPort` | Bolt protocol port | `7687` |
Expand All @@ -54,14 +55,14 @@ The following table lists the configurable parameters of the Memgraph chart and
| `memgraphConfig` | List of strings defining Memgraph configuration settings | `["--also-log-to-stderr=true"]` |
| `secrets.enabled` | Enable the use of Kubernetes secrets for Memgraph credentials | `false` |
| `secrets.name` | The name of the Kubernetes secret containing Memgraph credentials | `memgraph-secrets` |
| `secrets.userKey` | The key in the Kubernetes secret for the Memgraph user | `MEMGRAPH_USER` |
| `secrets.passwordKey` | The key in the Kubernetes secret for the Memgraph password | `MEMGRAPH_PASSWORD` |
| `secrets.userKey` | The key in the Kubernetes secret for the Memgraph user, the value is passed to the `MEMGRAPH_USER` env | `USER` |
| `secrets.passwordKey` | The key in the Kubernetes secret for the Memgraph password, the value is passed to the `MEMGRAPH_PASSWORD` | `PASSWORD` |
| `memgraphEnterpriseLicense` | Memgraph Enterprise License | `""` |
| `memgraphOrganizationName` | Organization name for Memgraph Enterprise License | `""` |
| `statefulSetAnnotations` | Annotations to add to the stateful set | `{}` |
| `podAnnotations` | Annotations to add to the pod | `{}` |
| `resources` | CPU/Memory resource requests/limits. Left empty by default. | `{}` |
| `tolerations` | Tolerations for pod. Left empty by default. | `[]` |
| `tolerations` | A toleration is applied to a pod and allows the pod to be scheduled on nodes with matching taints. Left empty by default. | `[]` |
| `serviceAccount.create` | Specifies whether a service account should be created | `true` |
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |
| `serviceAccount.name` | The name of the service account to use. If not set and create is true, a name is generated. | `""` |
Expand Down Expand Up @@ -104,7 +105,7 @@ memgraphConfig:
If you are using the Memgraph user, make sure you have secrets set:

```
kubectl create secret generic memgraph-secrets --from-literal=MEMGRAPH_USER=myuser --from-literal=MEMGRAPH_PASSWORD=mypassword
kubectl create secret generic memgraph-secrets --from-literal=USER=myuser --from-literal=PASSWORD=mypassword
```

For all available database settings, refer to the [Configuration settings reference guide](https://memgraph.com/docs/memgraph/reference-guide/configuration).
4 changes: 2 additions & 2 deletions charts/memgraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ memgraphConfig:
secrets:
enabled: false
name: memgraph-secrets
userKey: MEMGRAPH_USER
passwordKey: MEMGRAPH_PASSWORD
userKey: USER
passwordKey: PASSWORD

## Memgraph Enterprise Licence
# memgraphEnterpriseLicense: "<your-license>"
Expand Down
Loading