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 commands #74

Merged
merged 1 commit into from
Sep 24, 2021
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
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Nebula Operator manages [NebulaGraph](https://github.com/vesoft-inc/nebula-graph
It evolved from [NebulaGraph Cloud Service](https://www.nebula-cloud.io/), makes NebulaGraph a truly cloud-native database.

## Quick Start

- [Install Nebula Operator](#install-nebula-operator)
- [Create and Destroy](#create-and-destroy-a-nebula-cluster)
- [Resize](#resize-a-nebula-cluster)
Expand All @@ -18,7 +19,7 @@ $ kubectl create -f config/samples/apps_v1alpha1_nebulacluster.yaml
```
A none ha-mode nebula cluster will be created.
```bash
$ kubectl get pods -l app.kubernetes.io/instance=nebula
$ kubectl get pods -l app.kubernetes.io/cluster=nebula
NAME READY STATUS RESTARTS AGE
nebula-graphd-0 1/1 Running 0 1m
nebula-metad-0 1/1 Running 0 1m
Expand Down Expand Up @@ -63,7 +64,7 @@ Modify the file and change `replicas` from 3 to 5.
memory: "1Gi"
replicas: 5
image: vesoft/nebula-storaged
version: v2.5.0
version: v2.5.1
storageClaim:
resources:
requests:
Expand All @@ -78,7 +79,7 @@ $ kubectl apply -f config/samples/apps_v1alpha1_nebulacluster.yaml

The storaged cluster will scale to 5 members (5 pods):
```bash
$ kubectl get pods -l app.kubernetes.io/instance=nebula
$ kubectl get pods -l app.kubernetes.io/cluster=nebula
NAME READY STATUS RESTARTS AGE
nebula-graphd-0 1/1 Running 0 2m
nebula-metad-0 1/1 Running 0 2m
Expand All @@ -101,7 +102,7 @@ Similarly we can decrease the size of the cluster from 5 back to 3 by changing t
memory: "1Gi"
replicas: 3
image: vesoft/nebula-storaged
version: v2.5.0
version: v2.5.1
storageClaim:
resources:
requests:
Expand All @@ -111,7 +112,7 @@ Similarly we can decrease the size of the cluster from 5 back to 3 by changing t
We should see that storaged cluster will eventually reduce to 3 pods:
```bash
$ kubectl get pods -l app.kubernetes.io/instance=nebula
$ kubectl get pods -l app.kubernetes.io/cluster=nebula
NAME READY STATUS RESTARTS AGE
nebula-graphd-0 1/1 Running 0 10m
nebula-metad-0 1/1 Running 0 10m
Expand Down Expand Up @@ -139,7 +140,7 @@ $ kubectl delete pod nebula-storaged-2 --now
The nebula operator will recover the failure by creating a new pod `nebula-storaged-2`:

```bash
$ kubectl get pods -l app.kubernetes.io/instance=nebula
$ kubectl get pods -l app.kubernetes.io/cluster=nebula
NAME READY STATUS RESTARTS AGE
nebula-graphd-0 1/1 Running 0 15m
nebula-metad-0 1/1 Running 0 15m
Expand Down
10 changes: 5 additions & 5 deletions charts/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ entries:
nebula-cluster:
- apiVersion: v2
appVersion: 0.8.0
created: "2021-09-22T12:01:46.067787+08:00"
created: "2021-09-24T11:53:52.508186+08:00"
description: Nebula Cluster Helm chart for Kubernetes
digest: 08f8f836ea930f798ecda9faab8133734fb6735d56e38a8b862424fc20c64149
digest: a066917e40d489bfb10396155101bec78ef8f4f6b0c8c5e900149d13af8d91ce
home: https://nebula-graph.io
keywords:
- kubernetes
Expand All @@ -29,9 +29,9 @@ entries:
nebula-operator:
- apiVersion: v2
appVersion: 0.8.0
created: "2021-09-22T12:01:46.068321+08:00"
created: "2021-09-24T11:53:52.509111+08:00"
description: Nebula Operator Helm chart for Kubernetes
digest: 088c9e02bc3051ff8acf338411d4978c389939c9e445cdd06ff2cf5cdfb91554
digest: f45a7a804622614d3401b85f72ccd96955fdf7e4a1dfb1dd56cacda5365330d8
home: https://nebula-graph.io
keywords:
- kubernetes
Expand All @@ -50,4 +50,4 @@ entries:
urls:
- https://vesoft-inc.github.io/nebula-operator/charts/nebula-operator-0.8.0.tgz
version: 0.8.0
generated: "2021-09-22T12:01:46.06719+08:00"
generated: "2021-09-24T11:53:52.507102+08:00"
Binary file modified charts/nebula-cluster-0.8.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/nebula-cluster/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nebula:
version: v2.5.0
version: v2.5.1
imagePullPolicy: IfNotPresent
storageClassName: ""
schedulerName: default-scheduler # nebula-scheduler
Expand Down
Binary file modified charts/nebula-operator-0.8.0.tgz
Binary file not shown.
6 changes: 3 additions & 3 deletions config/samples/apps_v1alpha1_nebulacluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
memory: "1Gi"
replicas: 1
image: vesoft/nebula-graphd
version: v2.5.0
version: v2.5.1
service:
type: NodePort
externalTrafficPolicy: Local
Expand All @@ -32,7 +32,7 @@ spec:
memory: "1Gi"
replicas: 1
image: vesoft/nebula-metad
version: v2.5.0
version: v2.5.1
storageClaim:
resources:
requests:
Expand All @@ -48,7 +48,7 @@ spec:
memory: "1Gi"
replicas: 3
image: vesoft/nebula-storaged
version: v2.5.0
version: v2.5.1
storageClaim:
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion doc/user/custom_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
memory: "1Gi"
replicas: 1
image: vesoft/nebula-graphd
version: v2.5.0
version: v2.5.1
storageClaim:
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion doc/user/nebula_cluster_helm_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The following table lists is the configurable parameters of the chart and their
| Parameter | Description | Default |
|:---------|:-----------|:-------|
| `nameOverride` | Override the name of the chart | `nil` |
| `nebula.version` | Nebula version | `v2.5.0` |
| `nebula.version` | Nebula version | `v2.5.1` |
| `nebula.imagePullPolicy` | Nebula image pull policy | `IfNotPresent` |
| `nebula.storageClassName` | PersistentVolume class, default to use the default StorageClass | `nil` |
| `nebula.schedulerName` | Scheduler for nebula component | `default-scheduler` |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
k8s.io/cli-runtime v0.19.2
k8s.io/client-go v0.19.2
k8s.io/code-generator v0.19.2
k8s.io/klog/v2 v2.4.0
k8s.io/klog/v2 v2.4.0 // indirect
k8s.io/kube-scheduler v0.0.0
k8s.io/kubectl v0.0.0
k8s.io/kubernetes v1.19.2
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
github.com/thecodeteam/goscaleio v0.1.0/go.mod h1:68sdkZAsK8bvEwBlbQnlLS+xU+hvLYM/iQ8KXej1AwM=
Expand Down
7 changes: 3 additions & 4 deletions pkg/controller/nebulacluster/nebula_cluster_control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ func Test_defaultNebulaClusterControl_UpdateNebulaCluster(t *testing.T) {
}
}

// nolint: gocritic
func newFakeNebulaClusterControl() (
ControlInterface,
*component.FakeGraphdCluster,
Expand Down Expand Up @@ -173,7 +172,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster {
},
},
Image: "vesoft/graphd",
Version: "v2.5.0",
Version: "v2.5.1",
},
},
Metad: &v1alpha1.MetadSpec{
Expand All @@ -186,7 +185,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster {
},
},
Image: "vesoft/metad",
Version: "v2.5.0",
Version: "v2.5.1",
},
},
Storaged: &v1alpha1.StoragedSpec{
Expand All @@ -199,7 +198,7 @@ func newNebulaCluster() *v1alpha1.NebulaCluster {
},
},
Image: "vesoft/storaged",
Version: "v2.5.0",
Version: "v2.5.1",
},
},
},
Expand Down