-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(teleport): update monolithic microk8s example to show how to deploy OPA #23
Open
alee-x
wants to merge
4
commits into
main
Choose a base branch
from
feat/trino-opa-helm-examples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
3c416ef
feat(teleport): update monolithic microk8s example to show how to dep…
alee-x 710879f
fix(teleport): use proper released trino chart version
alee-x 18da439
fix(teleport): correct opa namespace in comment to correct one
alee-x 403607f
fix(teleport): chart paths to oci-style
alee-x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -8,9 +8,9 @@ appTeleport: | |
project: default | ||
|
||
source: | ||
repoURL: https://harbor.ukserp.ac.uk/chartrepo/dare | ||
repoURL: https://harbor.ukserp.ac.uk/chart/dare | ||
chart: teleport | ||
targetRevision: 1.5.1 | ||
targetRevision: 1.10.1 | ||
|
||
values: | ||
appGuacamole: | ||
|
@@ -23,7 +23,7 @@ appTeleport: | |
source: | ||
repoURL: https://hub.jupyter.org/helm-chart/ | ||
chart: jupyterhub | ||
targetRevision: 3.0.2 | ||
targetRevision: 3.1.0 | ||
values: | ||
singleuser: | ||
lifecycleHooks: | ||
|
@@ -45,25 +45,36 @@ appTeleport: | |
profileList: | ||
- display_name: "basic image" | ||
kubespawner_override: | ||
image: "harbor.ukserp.ac.uk/dare/jupyter:1.1.5" | ||
image: "harbor.ukserp.ac.uk/dare/jupyter:pr-59-2f7bf0e" | ||
default_url: '/lab' | ||
cmd: ['jupyterhub-singleuser', '--ContentsManager.allow_hidden=True'] | ||
|
||
appTrino: | ||
enabled: true | ||
namespace: trino | ||
source: | ||
repoURL: https://harbor.ukserp.ac.uk/chartrepo/dare | ||
repoURL: harbor.ukserp.ac.uk/chart/dare | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be |
||
chart: trino | ||
targetRevision: 1.3.1 | ||
targetRevision: 1.6.0 | ||
values: | ||
image: | ||
repository: harbor.ukserp.ac.uk/dare/trino | ||
tag: "1.3.1" | ||
tag: 1.5.0 | ||
|
||
server: | ||
workers: 2 | ||
config: | ||
spillToDisk: | ||
enabled: false | ||
# THIS IS THE NEW SECTION | ||
accessControl: | ||
enabled: true | ||
properties: | ||
access-control.name: "tech.stackable.trino.opa.OpaAuthorizer" | ||
# This assumes that opa-operator is deployed in the same cluster as Trino, in a namespace called "dare-opa". | ||
# If your opa operator is deployed in a different namespace, then you'll need to change this. | ||
opa.policy.uri: "http://opa-cluster.dare-opa.svc.cluster.local:8081/v1/data/trino/allow" | ||
security.refresh-period: "15s" | ||
query: | ||
maxMemory: "2GB" | ||
# maxmemorypernode + heapHeadroomPerNode <= coordination|worker.jvm.maxheapsize | ||
|
@@ -138,13 +149,13 @@ appTeleport: | |
# hive needs to go into the trino namespace | ||
namespace: trino | ||
source: | ||
repoURL: https://harbor.ukserp.ac.uk/chartrepo/dare | ||
repoURL: harbor.ukserp.ac.uk/chart/dare | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be |
||
chart: hive | ||
targetRevision: 1.0.0 | ||
targetRevision: 1.3.3 | ||
values: | ||
image: | ||
name: harbor.ukserp.ac.uk/dare/hive | ||
tag: "1.0.0" | ||
tag: "1.3.3" | ||
|
||
# In the below block, make sure you change these: | ||
# accessKey: 06LVN2MwcfLzsFr7BZ | ||
|
@@ -209,9 +220,25 @@ appTeleport: | |
appVault: | ||
enabled: false | ||
|
||
# don't deploy OPA, not needed | ||
# DO deploy OPA | ||
appOpa: | ||
enabled: false | ||
enabled: true | ||
namespace: opa | ||
source: | ||
repoURL: harbor.ukserp.ac.uk/dare/chart | ||
chart: opa | ||
targetRevision: 1.4.6 | ||
values: | ||
rules: | ||
host.rego: | | ||
package trino | ||
|
||
import future.keywords.if | ||
import future.keywords.in | ||
|
||
# as this is a sample allow rule, it just lets anyone in | ||
default allow := true | ||
|
||
|
||
# this app isn't complete yet | ||
appControl: | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
repoURL: harbor.ukserp.ac.uk/dare/chart