-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from dayuy/main
feat: add the component-store chart
- Loading branch information
Showing
11 changed files
with
421 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v2 | ||
name: component-store | ||
description: Component store to list, view and deploy various components. | ||
type: application | ||
version: 0.0.1 | ||
icon: https://avatars.githubusercontent.com/u/85277200 | ||
keywords: | ||
- kubebb | ||
sources: | ||
- https://github.com/kubebb/component-store | ||
maintainers: | ||
- name: bjwswang | ||
url: https://github.com/bjwswang | ||
- name: Carrotzpc | ||
url: https://github.com/Carrotzpc | ||
- name: dayuy | ||
url: https://github.com/dayuy | ||
- name: Jandiasnow | ||
url: https://github.com/Jandiasnow |
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,32 @@ | ||
# Component Store | ||
|
||
This Helm chart installs the `component-store` into your Kubernetes. | ||
|
||
### Install | ||
|
||
```shell | ||
helm install component-store kubebb/component-store --set ingressDomain=<ip>.nip.io | ||
``` | ||
|
||
### Upgrade | ||
|
||
```shell | ||
helm upgrade component-store kubebb/component-store --set ingressDomain=<ip>.nip.io | ||
``` | ||
|
||
### Uninstall | ||
|
||
```shell | ||
helm uninstall component-store | ||
``` | ||
|
||
### Configuration | ||
|
||
|
||
| Parameter | Description | Default | | ||
|---------------------|------------------------------|-----------------------------------| | ||
| `ingressDomain` | Ingress Domain | | | ||
| `ingressClassName` | Ingress Class | `portal-ingress` | | ||
| `image` | Image of the component-store | `kubebb/component-store:latest` | | ||
| `imagePullPolicy` | Image Pull Policy | `IfNotPresent` | | ||
| `resources` | Resources of the container | | |
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,15 @@ | ||
apiVersion: v1 | ||
data: | ||
config.yaml: |- | ||
log: | ||
# 支持 log,error,warn,debug,verbose 5 个日志等级的组合 | ||
levels: log,error,warn,verbose | ||
k8s: | ||
cluster: | ||
name: kube-oidc-proxy | ||
server: https://kube-oidc-proxy.u4a-system.svc | ||
skipTLSVerify: true | ||
kind: ConfigMap | ||
metadata: | ||
name: component-store-bff-server-config | ||
namespace: {{ .Release.Namespace }} |
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,35 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: component-store | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: component-store | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: component-store | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: component-store | ||
spec: | ||
containers: | ||
- image: {{ .Values.image }} | ||
imagePullPolicy: {{ .Values.imagePullPolicy }} | ||
name: component-store | ||
ports: | ||
- containerPort: 8066 | ||
protocol: TCP | ||
volumeMounts: | ||
- mountPath: /usr/src/app/packages/bff-server/configs/config.yaml | ||
name: component-store-bff-server-config-volume | ||
subPath: config.yaml | ||
resources: {{ toYaml .Values.resources | nindent 10 }} | ||
terminationGracePeriodSeconds: 30 | ||
volumes: | ||
- configMap: | ||
defaultMode: 420 | ||
name: component-store-bff-server-config | ||
name: component-store-bff-server-config-volume |
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,48 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
description: component-store-ingress | ||
displayName: component-store-ingress | ||
httpSend: / | ||
ingress-lb: {{ .Values.ingressClassName }} | ||
kubernetes.io/ingress.class: {{ .Values.ingressClassName }} | ||
nginx.ingress.kubernetes.io/configuration-snippet: | | ||
proxy_cache static-cache; | ||
proxy_cache_valid 404 10m; | ||
proxy_cache_use_stale error timeout updating http_404 http_500 http_502 http_503 http_504; | ||
proxy_cache_bypass $http_x_purge; | ||
add_header X-Cache-Status $upstream_cache_status; # check X-Cache-Status to see if it's HIT | ||
rewrite ^/(component-store-apis)(/|$)(.*)$ /$3 break; | ||
nginx.ingress.kubernetes.io/enable-access-log: "false" | ||
nginx.ingress.kubernetes.io/enable-rewrite-log: "false" | ||
nginx.ingress.kubernetes.io/load-balance: round_robin | ||
nginx.ingress.kubernetes.io/proxy-body-size: "" | ||
nginx.ingress.kubernetes.io/proxy-buffering: "on" | ||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "60" | ||
nginx.ingress.kubernetes.io/server-alias: "" | ||
nginx.ingress.kubernetes.io/ssl-redirect: "true" | ||
nginx.ingress.kubernetes.io/upstream-vhost: $host | ||
labels: | ||
ingress-lb: {{ .Values.ingressClassName }} | ||
name: component-store | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
rules: | ||
- host: portal.{{ .Values.ingressDomain }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: component-store | ||
port: | ||
number: 8066 | ||
path: /component-store-apis | ||
pathType: ImplementationSpecific | ||
- backend: | ||
service: | ||
name: component-store | ||
port: | ||
number: 8066 | ||
path: /component-store-public | ||
pathType: ImplementationSpecific |
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,210 @@ | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Menu | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
portal: component-store | ||
name: component-store-management-publish | ||
spec: | ||
getTitleForReplaceSider: {} | ||
parentOwnerReferences: | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
blockOwnerDeletion: false | ||
controller: false | ||
kind: Menu | ||
name: component-store-management | ||
uid: "" | ||
pathname: /component-store/components/management/publish | ||
rankingInColumn: 100 | ||
text: 我发布的 | ||
textEn: I Published | ||
status: {} | ||
|
||
--- | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Menu | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
portal: component-store | ||
name: component-store-management-installed | ||
spec: | ||
cluster: true | ||
getTitleForReplaceSider: {} | ||
parentOwnerReferences: | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
blockOwnerDeletion: false | ||
controller: false | ||
kind: Menu | ||
name: component-store-management | ||
uid: "" | ||
pathname: /component-store/components/management/install | ||
project: true | ||
rankingInColumn: 200 | ||
tenant: true | ||
text: 我安装的 | ||
textEn: I Installed | ||
status: {} | ||
|
||
--- | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Menu | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
portal: component-store | ||
name: component-store-management-subscribed | ||
spec: | ||
cluster: true | ||
getTitleForReplaceSider: {} | ||
parentOwnerReferences: | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
blockOwnerDeletion: false | ||
controller: false | ||
kind: Menu | ||
name: component-store-management | ||
uid: "" | ||
pathname: /component-store/components/management/subscription | ||
project: true | ||
rankingInColumn: 300 | ||
tenant: true | ||
text: 我订阅的 | ||
textEn: I Subscribed | ||
status: {} | ||
|
||
--- | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Menu | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
portal: component-store | ||
name: component-store-repository | ||
spec: | ||
getTitleForReplaceSider: {} | ||
icon: '{"name":"kubebb-warehouse","data":"<path d=\"M1004.8 432h19.2L512 80 0 432z\"></path><path | ||
d=\"M352 681.6h320v96H352zm0 160h320v96H352z\" opacity=\"0.6\"></path><path d=\"M128 | ||
425.6h128v512H128zm640 0h128v512H768zM256 432h512v128H256z\" opacity=\"0.8\"></path>"}' | ||
parentOwnerReferences: | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
blockOwnerDeletion: false | ||
controller: false | ||
kind: Menu | ||
name: component-store-index | ||
uid: "" | ||
pathname: /component-store/components/warehouse | ||
rankingInColumn: 100 | ||
text: 组件仓库管理 | ||
textEn: Component Repository | ||
status: {} | ||
|
||
--- | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Menu | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
portal: component-store | ||
name: component-store-market | ||
spec: | ||
getTitleForReplaceSider: {} | ||
icon: '{"name":"kubebb-market","data":"<path d=\"M876.8 556.8v294.4c0 25.6-19.2 | ||
44.8-44.8 44.8H185.6c-25.6 0-44.8-19.2-44.8-44.8V556.8h89.6v153.6h563.2V556.8h83.2z\" | ||
opacity=\"0.6\"></path><path d=\"M64 390.4v6.4c0 64 51.2 121.6 115.2 121.6 57.6 | ||
0 102.4-38.4 108.8-96 12.8 51.2 57.6 96 108.8 96 57.6 0 102.4-38.4 108.8-96 12.8 | ||
51.2 57.6 96 108.8 96 57.6 0 102.4-38.4 108.8-96 12.8 51.2 57.6 96 108.8 96 64 | ||
0 115.2-51.2 115.2-121.6v-6.4H64z\" opacity=\"0.8\"></path><path d=\"M76.8 345.6c-6.4 | ||
12.8-6.4 25.6-12.8 38.4h896c0-12.8-6.4-25.6-12.8-38.4L838.4 128H192L76.8 345.6z\"></path>"}' | ||
parentOwnerReferences: | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
blockOwnerDeletion: false | ||
controller: false | ||
kind: Menu | ||
name: component-store-index | ||
uid: "" | ||
pathname: /component-store/components/market | ||
rankingInColumn: 200 | ||
text: 组件市场 | ||
textEn: Component Market | ||
status: {} | ||
|
||
--- | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Menu | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
portal: component-store | ||
name: component-store-management | ||
spec: | ||
getTitleForReplaceSider: {} | ||
icon: '{"name":"kubebb-components","data":"<path d=\"M288 819.2l320-601.6-364.8 | ||
32-6.4-121.6H121.6c-32 0-57.6 25.6-57.6 57.6V832c0 38.4 25.6 64 57.6 64h172.8l-6.4-76.8z\"></path><path | ||
d=\"M902.4 128h-192l32 76.8-313.6 601.6 358.4-25.6L748.8 896h153.6c32 0 57.6-25.6 | ||
57.6-57.6V185.6c0-32-25.6-57.6-57.6-57.6z\" opacity=\"0.6\"></path>"}' | ||
parentOwnerReferences: | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
blockOwnerDeletion: false | ||
controller: false | ||
kind: Menu | ||
name: component-store-index | ||
uid: "" | ||
rankingInColumn: 300 | ||
tenant: true | ||
text: 组件管理 | ||
textEn: Component Management | ||
status: {} | ||
|
||
--- | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Menu | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
portal: component-store | ||
name: component-store-index | ||
spec: | ||
getTitleForReplaceSider: {} | ||
parentOwnerReferences: | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
blockOwnerDeletion: false | ||
controller: false | ||
kind: Menu | ||
name: component-store | ||
uid: "" | ||
rankingInColumn: 100 | ||
tenant: true | ||
text: 组件市场 | ||
textEn: Component Market | ||
status: {} | ||
|
||
--- | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Menu | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
portal: component-store | ||
name: component-store | ||
spec: | ||
column: 1 | ||
getTitleForReplaceSider: {} | ||
icon: '{"name":"kubebb-market","data":"<path d=\"M876.8 556.8v294.4c0 25.6-19.2 | ||
44.8-44.8 44.8H185.6c-25.6 0-44.8-19.2-44.8-44.8V556.8h89.6v153.6h563.2V556.8h83.2z\" | ||
opacity=\"0.6\"></path><path d=\"M64 390.4v6.4c0 64 51.2 121.6 115.2 121.6 57.6 | ||
0 102.4-38.4 108.8-96 12.8 51.2 57.6 96 108.8 96 57.6 0 102.4-38.4 108.8-96 12.8 | ||
51.2 57.6 96 108.8 96 57.6 0 102.4-38.4 108.8-96 12.8 51.2 57.6 96 108.8 96 64 | ||
0 115.2-51.2 115.2-121.6v-6.4H64z\" opacity=\"0.8\"></path><path d=\"M76.8 345.6c-6.4 | ||
12.8-6.4 25.6-12.8 38.4h896c0-12.8-6.4-25.6-12.8-38.4L838.4 128H192L76.8 345.6z\"></path>"}' | ||
parentOwnerReferences: | ||
apiVersion: "" | ||
kind: "" | ||
name: "" | ||
uid: "" | ||
rankingInColumn: 100 | ||
tenant: true | ||
text: 组件市场 | ||
textEn: Component Market | ||
status: {} | ||
|
||
--- |
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,7 @@ | ||
apiVersion: core.kubebb.k8s.com.cn/v1alpha1 | ||
kind: Portal | ||
metadata: | ||
name: component-store | ||
spec: | ||
entry: /component-store-public/index.html | ||
path: /component-store |
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,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: component-store | ||
name: component-store | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
ports: | ||
- name: http | ||
port: 8066 | ||
protocol: TCP | ||
targetPort: 8066 | ||
selector: | ||
app: component-store | ||
sessionAffinity: None | ||
type: ClusterIP |
Oops, something went wrong.