Compare commits
3 Commits
cli/fix/up
...
remove-ana
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82f479307b | ||
|
|
f4ec46fee1 | ||
|
|
73f7148392 |
@@ -351,7 +351,7 @@ spec:
|
|||||||
- name: PGDB
|
- name: PGDB
|
||||||
value: user_space_{{ .Values.bfl.username }}_cloud_drive_integration
|
value: user_space_{{ .Values.bfl.username }}_cloud_drive_integration
|
||||||
- name: system-frontend-init
|
- name: system-frontend-init
|
||||||
image: beclab/system-frontend:v1.3.93
|
image: beclab/system-frontend:v1.3.95
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
@@ -1584,8 +1584,6 @@ data:
|
|||||||
prefix: "/images/upload"
|
prefix: "/images/upload"
|
||||||
route:
|
route:
|
||||||
cluster: images
|
cluster: images
|
||||||
http_protocol_options:
|
|
||||||
accept_http_10: true
|
|
||||||
http_filters:
|
http_filters:
|
||||||
- name: envoy.filters.http.router
|
- name: envoy.filters.http.router
|
||||||
typed_config:
|
typed_config:
|
||||||
|
|||||||
@@ -1,147 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ $analytics_rootpath := printf "%s%s" .Values.rootPath "/rootfs/analytics" }}
|
|
||||||
{{- $namespace := printf "%s" "os-framework" -}}
|
|
||||||
{{- $analytics_secret := (lookup "v1" "Secret" $namespace "analytics-secrets") -}}
|
|
||||||
{{- $pg_password := "" -}}
|
|
||||||
{{ if $analytics_secret -}}
|
|
||||||
{{ $pg_password = (index $analytics_secret "data" "pg_password") }}
|
|
||||||
{{ else -}}
|
|
||||||
{{ $pg_password = randAlphaNum 16 | b64enc }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: analytics-secrets
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
pg_password: {{ $pg_password }}
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apr.bytetrade.io/v1alpha1
|
|
||||||
kind: MiddlewareRequest
|
|
||||||
metadata:
|
|
||||||
name: analytics-pg
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
|
||||||
app: analytics
|
|
||||||
appNamespace: {{ .Release.Namespace }}
|
|
||||||
middleware: postgres
|
|
||||||
postgreSQL:
|
|
||||||
user: analytics_os_framework
|
|
||||||
password:
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: pg_password
|
|
||||||
name: analytics-secrets
|
|
||||||
databases:
|
|
||||||
- name: analytics
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: analytics-server
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
labels:
|
|
||||||
app: analytics-server
|
|
||||||
applications.app.bytetrade.io/author: bytetrade.io
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: analytics-server
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: analytics-server
|
|
||||||
spec:
|
|
||||||
initContainers:
|
|
||||||
- name: init-container
|
|
||||||
image: 'postgres:16.0-alpine3.18'
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- '-c'
|
|
||||||
- >-
|
|
||||||
echo -e "Checking for the availability of PostgreSQL Server deployment"; until psql -h $PGHOST -p $PGPORT -U $PGUSER -d $PGDB -c "SELECT 1"; do sleep 1; printf "-"; done; sleep 5; echo -e " >> PostgreSQL DB Server has started";
|
|
||||||
env:
|
|
||||||
- name: PGHOST
|
|
||||||
value: citus-0.citus-headless.os-platform
|
|
||||||
- name: PGPORT
|
|
||||||
value: "5432"
|
|
||||||
- name: PGUSER
|
|
||||||
value: analytics_os_framework
|
|
||||||
- name: PGPASSWORD
|
|
||||||
value: {{ $pg_password | b64dec }}
|
|
||||||
- name: PGDB
|
|
||||||
value: os_framework_analytics
|
|
||||||
containers:
|
|
||||||
- name: analytics-server
|
|
||||||
image: beclab/analytics-api:v0.0.7
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- containerPort: 3010
|
|
||||||
env:
|
|
||||||
- name: PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING
|
|
||||||
value: '1'
|
|
||||||
- name: PL_DATA_BACKEND
|
|
||||||
value: postgres
|
|
||||||
- name: PL_DATA_POSTGRES_HOST
|
|
||||||
value: citus-0.citus-headless.os-platform
|
|
||||||
- name: PL_DATA_POSTGRES_PORT
|
|
||||||
value: "5432"
|
|
||||||
- name: PL_DATA_POSTGRES_DATABASE
|
|
||||||
value: os_framework_analytics
|
|
||||||
- name: PL_DATA_POSTGRES_USER
|
|
||||||
value: analytics_os_framework
|
|
||||||
- name: PL_DATA_POSTGRES_PASSWORD
|
|
||||||
value: {{ $pg_password | b64dec }}
|
|
||||||
- name: DATABASE_URL
|
|
||||||
value: postgres://$(PL_DATA_POSTGRES_USER):$(PL_DATA_POSTGRES_PASSWORD)@$(PL_DATA_POSTGRES_HOST)/$(PL_DATA_POSTGRES_DATABASE)?sslmode=disable
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: analytics-server
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: analytics-server
|
|
||||||
ports:
|
|
||||||
- name: server
|
|
||||||
protocol: TCP
|
|
||||||
port: 3010
|
|
||||||
targetPort: 3010
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apr.bytetrade.io/v1alpha1
|
|
||||||
kind: SysEventRegistry
|
|
||||||
metadata:
|
|
||||||
name: analytics-user-create-cb
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
|
||||||
type: subscriber
|
|
||||||
event: user.create
|
|
||||||
callback: http://analytics-server.{{ .Release.Namespace }}:3010/callback/create
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apr.bytetrade.io/v1alpha1
|
|
||||||
kind: SysEventRegistry
|
|
||||||
metadata:
|
|
||||||
name: analytics-user-delete-cb
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
|
||||||
type: subscriber
|
|
||||||
event: user.delete
|
|
||||||
callback: http://analytics-server.{{ .Release.Namespace }}:3010/callback/delete
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# analytics
|
|
||||||
|
|
||||||
https://github.com/beclab/analytic
|
|
||||||
@@ -163,7 +163,7 @@ spec:
|
|||||||
priorityClassName: "system-cluster-critical"
|
priorityClassName: "system-cluster-critical"
|
||||||
containers:
|
containers:
|
||||||
- name: app-service
|
- name: app-service
|
||||||
image: beclab/app-service:0.3.49
|
image: beclab/app-service:0.3.50
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
@@ -179,7 +179,7 @@ spec:
|
|||||||
- name: REQUIRE_PERMISSION_APPS
|
- name: REQUIRE_PERMISSION_APPS
|
||||||
value: "vault,desktop,message,wise,search,appstore,notification,dashboard,settings,studio,profile"
|
value: "vault,desktop,message,wise,search,appstore,notification,dashboard,settings,studio,profile"
|
||||||
- name: SYS_APPS
|
- name: SYS_APPS
|
||||||
value: "analytics,market,auth,citus,desktop,did,docs,files,fsnotify,headscale,infisical,intentprovider,ksserver,message,mongo,monitoring,notifications,profile,redis,wise,recommend,seafile,search,search-admin,settings,systemserver,tapr,vault,video,zinc,accounts,control-hub,dashboard,nitro,system-frontend,studio"
|
value: "market,auth,citus,desktop,did,docs,files,fsnotify,headscale,infisical,intentprovider,ksserver,message,mongo,monitoring,notifications,profile,redis,wise,recommend,seafile,search,search-admin,settings,systemserver,tapr,vault,video,zinc,accounts,control-hub,dashboard,nitro,system-frontend,studio"
|
||||||
- name: GENERATED_APPS
|
- name: GENERATED_APPS
|
||||||
value: "citus,mongo-cluster-cfg,mongo-cluster-mongos,mongo-cluster-rs0,frp-agent,l4-bfl-proxy,drc-redis-cluster,appdata-backend,argoworkflows,argoworkflow-workflow-controller,velero,kvrocks"
|
value: "citus,mongo-cluster-cfg,mongo-cluster-mongos,mongo-cluster-rs0,frp-agent,l4-bfl-proxy,drc-redis-cluster,appdata-backend,argoworkflows,argoworkflow-workflow-controller,velero,kvrocks"
|
||||||
- name: WS_CONTAINER_IMAGE
|
- name: WS_CONTAINER_IMAGE
|
||||||
@@ -398,7 +398,7 @@ spec:
|
|||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: image-service
|
- name: image-service
|
||||||
image: beclab/image-service:0.3.47
|
image: beclab/image-service:0.3.50
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
@@ -409,7 +409,7 @@ spec:
|
|||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: spec.nodeName
|
fieldPath: spec.nodeName
|
||||||
- name: SYS_APPS
|
- name: SYS_APPS
|
||||||
value: "analytics,market,auth,citus,desktop,did,docs,files,fsnotify,headscale,infisical,intentprovider,ksserver,message,mongo,monitoring,notifications,profile,redis,wise,recommend,seafile,search,nitro,search-admin,settings,systemserver,tapr,vault,video,zinc,accounts,control-hub,dashboard"
|
value: "market,auth,citus,desktop,did,docs,files,fsnotify,headscale,infisical,intentprovider,ksserver,message,mongo,monitoring,notifications,profile,redis,wise,recommend,seafile,search,nitro,search-admin,settings,systemserver,tapr,vault,video,zinc,accounts,control-hub,dashboard"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/run/containerd
|
- mountPath: /var/run/containerd
|
||||||
mountPropagation: Bidirectional
|
mountPropagation: Bidirectional
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
fieldPath: spec.nodeName
|
fieldPath: spec.nodeName
|
||||||
- name: ingress
|
- name: ingress
|
||||||
image: beclab/bfl-ingress:v0.3.8
|
image: beclab/bfl-ingress:v0.3.9
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: ngxlog
|
- name: ngxlog
|
||||||
|
|||||||
Reference in New Issue
Block a user