Skip to content

Commit

Permalink
feat: add openim kubernetes deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw) <[email protected]>
  • Loading branch information
cubxxw committed Oct 26, 2023
1 parent a1547af commit b3a7fcd
Show file tree
Hide file tree
Showing 17 changed files with 364 additions and 74 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tmp/
bin/
output/
_output/
deployments/charts/generated-configs/

### OpenIM Config ###
config/config.yaml
Expand Down
14 changes: 14 additions & 0 deletions deployments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ $ sudo sealos run labring/kubernetes:v1.25.0 labring/helm:v3.8.2 labring/calico:
> $ sealos reset
> ```
If you are local, you can also use Kind and Minikube to test, for example, using Kind:
```bash
$ sGO111MODULE="on" go get sigs.k8s.io/[email protected]
$ skind create cluster
```
### Installing helm

Helm simplifies the deployment and management of Kubernetes applications to a large extent by offering version control and release management through packaging.
Expand Down Expand Up @@ -112,3 +119,10 @@ $ make image
## Installation

Explore our Helm-Charts repository and read through: [Helm-Charts Repository](https://github.com/openimsdk/helm-charts)


```bash
../scripts/genconfig.sh ../scripts/install/environment.sh ./templates/openim.yaml > ./charts/generated-configs/config.yaml
cp ../config/notification.yaml ./charts/generated-configs/notification.yaml
../scripts/genconfig.sh ../scripts/install/environment.sh ./templates/helm-image.yaml > ./charts/generated-configs/helm-image.yaml
```
74 changes: 0 additions & 74 deletions deployments/charts/Chart.yaml

This file was deleted.

92 changes: 92 additions & 0 deletions deployments/charts/helmfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
repositories:
- name: stable
url: https://charts.helm.sh/stable

releases:
- name: openim-api
namespace: default
chart: ./openim-api
values:
- openim-api/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-msggateway
namespace: default
chart: ./openim-msggateway
values:
- openim-msggateway/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-msgtransfer
namespace: default
chart: ./openim-msgtransfer
values:
- openim-msgtransfer/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-push
namespace: default
chart: ./openim-push
values:
- openim-push/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml

- name: openim-rpc-auth
namespace: default
chart: ./openim-rpc-auth
values:
- openim-rpc-auth/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-rpc-conversation
namespace: default
chart: ./openim-rpc-conversation
values:
- openim-rpc-conversation/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-rpc-friend
namespace: default
chart: ./openim-rpc-friend
values:
- openim-rpc-friend/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-rpc-group
namespace: default
chart: ./openim-rpc-group
values:
- openim-rpc-group/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-rpc-msg
namespace: default
chart: ./openim-rpc-msg
values:
- openim-rpc-msg/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-rpc-third
namespace: default
chart: ./openim-rpc-third
values:
- openim-rpc-third/values.yaml
- generated-configs/helm-image.yaml
- generated-configs/config.yaml
- generated-configs/notification.yaml
- name: openim-rpc-user
namespace: default
chart: ./openim-rpc-user
values:
- openim-rpc-user/values.yaml
- generated-configs/helm-image.yaml
15 changes: 15 additions & 0 deletions deployments/charts/openim-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
15 changes: 15 additions & 0 deletions deployments/charts/openim-msggateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
15 changes: 15 additions & 0 deletions deployments/charts/openim-msgtransfer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
15 changes: 15 additions & 0 deletions deployments/charts/openim-push/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
15 changes: 15 additions & 0 deletions deployments/charts/openim-rpc-auth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
15 changes: 15 additions & 0 deletions deployments/charts/openim-rpc-conversation/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
15 changes: 15 additions & 0 deletions deployments/charts/openim-rpc-friend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
15 changes: 15 additions & 0 deletions deployments/charts/openim-rpc-group/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
15 changes: 15 additions & 0 deletions deployments/charts/openim-rpc-msg/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ version: 0.1.0
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

icon: https://raw.githubusercontent.com/openimsdk/open-im-server/main/assets/openim-logo-gradient.svg

maintainers:
- name: "OpenIM"
url: "https://github.com/openimsdk"

keywords:
- openim
- im
- chat

sources:
- "https://github.com/openimsdk/open-im-server"
- "https://github.com/openimsdk/helm-charts"
Loading

0 comments on commit b3a7fcd

Please sign in to comment.