-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor code refactor refine proxy server todo: bind to pvc and deploy on internal try to test on internal modify dockerfile able to launch, todo: fix graph creation and loading
- Loading branch information
1 parent
ae98086
commit 5cfd6bd
Showing
44 changed files
with
2,419 additions
and
278 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
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
25 changes: 25 additions & 0 deletions
25
charts/graphscope-interactive/backup/admin_virtual_server.yaml
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,25 @@ | ||
apiVersion: k8s.nginx.org/v1 | ||
kind: VirtualServer | ||
metadata: | ||
name: admin-service | ||
namespace: {{ .Release.Namespace }} | ||
labels: {{- include "graphscope-interactive.labels" . | nindent 4 }} | ||
app.kubernetes.io/component: virtual-server | ||
{{- if .Values.commonLabels }} | ||
{{- include "graphscope-interactive.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.commonAnnotations }} | ||
annotations: {{- include "graphscope-interactive.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
host: admin.interactive.com | ||
listener: | ||
http: http-7777 | ||
upstreams: | ||
- name: interactive-admin | ||
service: {{ include "graphscope-interactive.primary.fullname" . }} | ||
port: {{ .Values.primary.service.adminPort }} | ||
routes: | ||
- path: / | ||
action: | ||
pass: interactive-admin |
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
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
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: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: http-forwarder | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
nginx.ingress.kubernetes.io/rewrite-target: / # 如果需要重写URL,否则可以省略 | ||
spec: | ||
rules: | ||
- host: your.domain.com # 替换为你实际的域名 | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: target-service | ||
port: | ||
number: 10000 |
17 changes: 17 additions & 0 deletions
17
charts/graphscope-interactive/backup/nginx_ingress_custom.yaml
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 @@ | ||
controller: | ||
globalConfiguration: | ||
## Creates the GlobalConfiguration custom resource. Requires controller.enableCustomResources. | ||
create: true | ||
|
||
## The spec of the GlobalConfiguration for defining the global configuration parameters of the Ingress Controller. | ||
spec: ## Ensure both curly brackets are removed when adding listeners in YAML format. | ||
listeners: | ||
- name: http-10000 | ||
port: 10000 | ||
protocol: HTTP | ||
service: | ||
customPorts: | ||
- name: http-10000 | ||
port: 10000 | ||
protocol: TCP | ||
targetPort: 10000 |
49 changes: 49 additions & 0 deletions
49
charts/graphscope-interactive/backup/query_virtual_server.yaml
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,49 @@ | ||
apiVersion: k8s.nginx.org/v1 | ||
kind: VirtualServer | ||
metadata: | ||
name: query-service | ||
namespace: {{ .Release.Namespace }} | ||
labels: {{- include "graphscope-interactive.labels" . | nindent 4 }} | ||
app.kubernetes.io/component: virtual-server | ||
{{- if .Values.commonLabels }} | ||
{{- include "graphscope-interactive.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.commonAnnotations }} | ||
annotations: {{- include "graphscope-interactive.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
host: query.interactive.com | ||
listener: | ||
http: http-10000 | ||
upstreams: | ||
- name: interactive-post | ||
service: {{ include "graphscope-interactive.primary.fullname" . }} | ||
port: {{ .Values.primary.service.queryPort }} | ||
- name: interactive-get | ||
service: {{ include "graphscope-interactive.secondary.fullname" . }} | ||
port: {{ .Values.secondary.service.queryPort }} | ||
routes: | ||
- path: / | ||
matches: | ||
- conditions: | ||
- variable: $request_method | ||
value: GET | ||
action: | ||
pass: interactive-get | ||
- conditions: | ||
- variable: $request_method | ||
value: POST | ||
action: | ||
pass: interactive-post | ||
- conditions: | ||
- variable: $request_method | ||
value: PUT | ||
action: | ||
pass: interactive-post | ||
- conditions: | ||
- variable: $request_method | ||
value: DELETE | ||
action: | ||
pass: interactive-post | ||
action: | ||
pass: interactive-get |
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,77 @@ | ||
Kata: &kata | ||
#hostNetwork: true | ||
schedulerName: unified-batch-scheduler | ||
podAnnotations: | ||
alibabacloud.com/assign-in-virtual-node: odps-kata | ||
alibabacloud.com/skip-kubelet-admission: "[\"cpu\",\"memory\",\"alibabacloud.com/acu\",\"pods\"]" | ||
podLabels: &podlabels | ||
alibabacloud/qos: LS | ||
alibabacloud.com/quota-name: yuansi-child-quotaxy | ||
|
||
NoKata: &nokata | ||
hostNetwork: false | ||
schedulerName: default-scheduler | ||
podAnnotations: | ||
#alibabacloud.com/assign-in-virtual-node: odps-kata | ||
alibabacloud.com/skip-kubelet-admission: "[\"cpu\",\"memory\",\"alibabacloud.com/acu\",\"pods\"]" | ||
podLabels: | ||
alibabacloud/qos: LS | ||
#alibabacloud.com/quota-name: yuansi-child-quotaxy | ||
|
||
Defaults: &defaults | ||
dnsPolicy: &dnspolicy None | ||
dnsConfig: &dnsconfig | ||
nameservers: ["11.163.105.32"] | ||
searches: | ||
- kubetask.svc.cluster.local | ||
- svc.cluster.local | ||
- cluster.local | ||
options: | ||
- name: ndots | ||
value: "2" | ||
|
||
tolerations: &toleration | ||
- effect: NoExecute | ||
key: node.kubernetes.io/not-ready | ||
operator: Exists | ||
tolerationSeconds: 300 | ||
- effect: NoExecute | ||
key: node.kubernetes.io/unreachable | ||
operator: Exists | ||
tolerationSeconds: 300 | ||
- effect: NoSchedule | ||
key: sigma.ali/resource-pool | ||
operator: Exists | ||
#value: ackee_pool | ||
- effect: NoSchedule | ||
key: sigma.ali/is-ecs | ||
operator: Exists | ||
- effect: NoSchedule | ||
key: alibabacloud.com/partition | ||
operator: Exists | ||
- effect: NoSchedule | ||
key: sigma.ali/server-owner | ||
operator: Exists | ||
|
||
resources: &resource_min | ||
limits: | ||
cpu: 1000m | ||
memory: 1Gi | ||
requests: | ||
cpu: 1000m | ||
memory: 1Gi | ||
|
||
global: | ||
#imageRegistry: registry.cn-hongkong.aliyuncs.com | ||
storageClass: csi-ultron-prjquota | ||
|
||
<<: *defaults | ||
|
||
primary: | ||
<<: *nokata | ||
|
||
secondary: | ||
<<: *nokata | ||
|
||
frontend: | ||
<<: *nokata |
Oops, something went wrong.