Skip to content

Commit

Permalink
added ocis proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
refs committed Dec 26, 2020
1 parent 7f91f94 commit ec848c1
Show file tree
Hide file tree
Showing 12 changed files with 158 additions and 335 deletions.
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
helm install ocis . --dry-run --debug
22 changes: 0 additions & 22 deletions templates/NOTES.txt

This file was deleted.

62 changes: 0 additions & 62 deletions templates/_helpers.tpl

This file was deleted.

86 changes: 86 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: proxy-config
namespace: default
data:
proxy.json: |
{
"HTTP": {
"Namespace": "com.owncloud"
},
"oidc": {
"issuer": {{ .Values.ingressDomain }},
"insecure": true
},
"policy_selector": {
"static": {
"policy": "reva"
}
},
"policies": [{
"name": "reva",
"routes": [{
"endpoint": "/",
"backend": "http://web-service:9100"
},
{
"endpoint": "/.well-known/",
"backend": "http://konnectd-service:9130"
},
{
"endpoint": "/konnect/",
"backend": "http://konnectd-service:9130"
},
{
"endpoint": "/signin/",
"backend": "http://konnectd-service:9130"
},
{
"endpoint": "/ocs/",
"backend": "http://storages-service:9140"
},
{
"endpoint": "/remote.php/",
"backend": "http://storages-service:9140"
},
{
"endpoint": "/dav/",
"backend": "http://storages-service:9140"
},
{
"endpoint": "/webdav/",
"backend": "http://storages-service:9140"
},
{
"endpoint": "/status.php/",
"backend": "http://storages-service:9140"
},
{
"endpoint": "/index.php/",
"backend": "http://storages-service:9140"
},
{
"type": "regex",
"endpoint": "/ocs/v[12].php/cloud/(users?|groups)",
"backend": "http://ocs-service:9110"
},
{
"endpoint": "/api/v0/accounts",
"backend": "http://storages-service:9181"
},
{
"endpoint": "/accounts.js",
"backend": "http://storages-service:9181"
},
{
"endpoint": "/api/v0/settings",
"backend": "http://settings-service:9190"
},
{
"endpoint": "/settings.js",
"backend": "http://settings-service:9190"
}
]
}]
}
61 changes: 0 additions & 61 deletions templates/deployment.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions templates/hpa.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions templates/ingress.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions templates/ocis-service-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.Services.Proxy.metadata.name }}
spec:
selector:
matchLabels:
{{- range $key, $val := .Values.Services.Proxy.matchLabels}}
{{ $key }}: {{ $val }}
{{- end}}
replicas: 1
template:
metadata:
labels:
{{- range $key, $val := .Values.Services.Proxy.labels}}
{{ $key }}: {{ $val }}
{{- end}}
spec:
containers:
- name: proxy
image: {{ .Values.image }}
command: ["ocis"]
args: {{ .Values.Services.Proxy.args }}
env:
{{- range .Values.Services.Proxy.Env }}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
ports:
- containerPort: {{ .Values.Services.Proxy.containerPort }}
{{- if .Values.Services.Proxy.volumeMounts }}
volumeMounts:
- name: configs
mountPath: /etc/ocis/
{{ end }}
{{- if .Values.Services.Proxy.volumes }}
volumes:
- name: configs
configMap:
name: proxy-config
{{ end }}
15 changes: 0 additions & 15 deletions templates/service.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions templates/serviceaccount.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions templates/tests/test-connection.yaml

This file was deleted.

Loading

0 comments on commit ec848c1

Please sign in to comment.