-
Notifications
You must be signed in to change notification settings - Fork 332
Helm chart redesign for Quarkus-based runtimes #626
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
Changes from all commits
ad0d480
bac622d
8d5737b
ba5882d
8c45ee0
cd330f8
80cc4d4
c64771b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
|
|
||
| image: | ||
| pullPolicy: Never | ||
|
|
||
| service: | ||
| type: ClusterIP | ||
| sessionAffinity: ClientIP | ||
| internalTrafficPolicy: Cluster | ||
| externalTrafficPolicy: Cluster | ||
| ports: | ||
| - name: polaris-http | ||
| port: 18181 | ||
| targetPort: 8181 | ||
| protocol: TCP | ||
| - name: polaris-http2 | ||
| port: 28181 | ||
| targetPort: 8181 | ||
| protocol: TCP | ||
|
|
||
| extraServices: | ||
| - nameSuffix: "ext" | ||
| type: ClusterIP | ||
| sessionAffinity: None | ||
| internalTrafficPolicy: Local | ||
| externalTrafficPolicy: Local | ||
| ports: | ||
| - name: polaris-http2 | ||
| port: 38181 | ||
| targetPort: 8181 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,13 +38,17 @@ stringData: | |
| <class>org.apache.polaris.jpa.models.ModelSequenceId</class> | ||
| <shared-cache-mode>NONE</shared-cache-mode> | ||
| <properties> | ||
| <property name="jakarta.persistence.jdbc.url" value="jdbc:h2:mem:polaris-{realm}"/> | ||
| <property name="jakarta.persistence.jdbc.user" value="sa"/> | ||
| <property name="jakarta.persistence.jdbc.password" value=""/> | ||
| <property name="jakarta.persistence.jdbc.url" | ||
|
||
| value="jdbc:postgresql://postgres:5432/{realm}"/> | ||
| <property name="jakarta.persistence.jdbc.user" value="postgres"/> | ||
| <property name="jakarta.persistence.jdbc.password" value="postgres"/> | ||
| <property name="jakarta.persistence.schema-generation.database.action" value="create"/> | ||
| <property name="eclipselink.logging.level.sql" value="FINE"/> | ||
| <property name="eclipselink.logging.parameters" value="true"/> | ||
| <property name="eclipselink.persistence-context.flush-mode" value="auto"/> | ||
| <property name="eclipselink.connection-pool.default.initial" value="1" /> | ||
|
||
| <property name="eclipselink.connection-pool.default.min" value="1" /> | ||
| <property name="eclipselink.connection-pool.default.max" value="1" /> | ||
| </properties> | ||
| </persistence-unit> | ||
| </persistence> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
|
|
||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: postgres | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: postgres | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: postgres | ||
| spec: | ||
| containers: | ||
| - name: postgres | ||
| image: postgres:17.2 | ||
| ports: | ||
| - containerPort: 5432 | ||
| resources: | ||
| limits: | ||
| memory: "128Mi" | ||
| env: | ||
| - name: POSTGRES_USER | ||
| value: "postgres" | ||
| - name: POSTGRES_PASSWORD | ||
| value: "postgres" | ||
| - name: POSTGRES_DB | ||
| value: "POLARIS" | ||
| - name: POSTGRES_INITDB_ARGS | ||
| value: "--encoding UTF8 --data-checksums" | ||
| readinessProbe: | ||
| exec: | ||
| command: | ||
| - pg_isready | ||
| - -U | ||
| - postgres | ||
| initialDelaySeconds: 5 | ||
| periodSeconds: 5 | ||
| timeoutSeconds: 2 | ||
| failureThreshold: 15 | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: postgres | ||
| spec: | ||
| selector: | ||
| app: postgres | ||
| ports: | ||
| - protocol: TCP | ||
| port: 5432 | ||
| targetPort: 5432 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
|
|
||
| apiVersion: v1 | ||
| kind: Secret | ||
| metadata: | ||
| name: polaris-storage | ||
| type: Opaque | ||
| stringData: | ||
| access-key: "my-key" | ||
| secret-key: "my-secret" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
|
|
||
| apiVersion: v1 | ||
| kind: Secret | ||
| metadata: | ||
| name: polaris-token-broker | ||
| type: Opaque | ||
| # The following values were generated using the following commands: | ||
| # openssl genrsa -out private.pem 2048 | ||
| # openssl rsa -in private.pem -pubout -out public.pem | ||
| # They do not contain any sensitive information and are used for testing purposes only. | ||
| stringData: | ||
| private.pem: |- | ||
| -----BEGIN PRIVATE KEY----- | ||
| MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDiae5jQnQ+Dt8Optpa4fLNuUfI | ||
|
||
| 37Sy29JPfn22CkGNo54SJi8NtR38Q958Bx9B+30IZPm3KtZGPC38Tm78/C508h7/Bd0jO7S3/UuQ | ||
| rYlg9H8gC59j14fE5cKEiKCvHrNK35Act9LrfhwEoGBs7G+90KD3SBIWzoc4vS8AB/ey09kRN3+M | ||
| dQ/DuRrafRgEx8ecq0x4KPggrmvworVVm1ya+H2JNKUQ+uQugmwxeRDE1GuJrgNnn4+ajueEnGdc | ||
| ohgz067AgZExzoyRl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0YdS/WpxzC0r9N7FubZUm/4doNQD5H2NEqjIacl | ||
| 7dd+ifaGM5GYTqJVZgEQbGb8Di3s/8r8Ghtlh+cUgNFidGWN3LKhqs6eKDGC0np5dZ3j9E1YPc4i | ||
| OF8nAoGAYeFjfXBXKQhQXItTlL5NMd+yNvMGJDOvNYOn90acZrDld8GvqHI9A1kQf2IuYfA8Yfxg | ||
| O2lpCWjiPAsAC3W5BMhfkzjxpikW6YLpXXx7wpDzNAUBAuhEHlmFSMOoa4CIBnN2+6Zw8PSsKnrI | ||
| 49N28pje/ZyABaY7SYP3fcJY17o= | ||
| -----END PRIVATE KEY----- | ||
| public.pem: |- | ||
| -----BEGIN PUBLIC KEY----- | ||
| MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4mnuY0J0Pg7fDqbaWuHyzblHyN+0stvS | ||
| T359tgpBjaOeEiYvDbUd/EPefAcfQft9CGT5tyrWRjwt/E5u/PwudPIe/wXdIzu0t/1LkK2JYPR/ | ||
| IAufY9eHxOXChIigrx6zSt+QHLfS634cBKBgbOxvvdCg90gSFs6HOL0vAAf3stPZETd/jHUPw7ka | ||
| 2n0YBMfHnKtMeCj4IK5r8KK1VZtcmvh9iTSlEPrkLoJsMXkQxNRria4DZ5+Pmo7nhJxnXKIYM9Ou | ||
| wIGRMc6MkZboyVwbi+iUbTkmxGFaTVdZWlXQPFCdm+SNT4jZ1b8dZuIBYvwnpWuO/RDurfgAvmtX | ||
| s/jMUwIDAQAB | ||
| -----END PUBLIC KEY----- | ||
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.
is that two ports one for icebergRestCatalog service, and another one for OAuth service?
Uh oh!
There was an error while loading. Please reload this page.
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.
This file is just for tests and contains "bogus" data that does not necessarily reflect how
extraServiceswill be used in real life, because in these tests we cannot create load balancers, ingresses, etc.The typical use case for
extraServicesis:ClusterIPservice.LoadBalancerservice, for consumption by external clients (potentially with TLS termination, etc.)This can be achieved by simply leaving
serviceandmanagementServiceuntouched, and adding the following config:Assuming the release name is
my-release, the above will generate the following services:my-releaseof type ClusterIP for port 8181;my-release-extof type LoadBalancer for port 8181;my-release-mgmtservice of type ClusterIP (headless) for port 8182.