-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from projectsyn/fix-openshift-db-security
Fix using the built-in DB with OpenShift
- Loading branch information
Showing
22 changed files
with
770 additions
and
8 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
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
6 changes: 6 additions & 0 deletions
6
tests/golden/openshift-postgres/openshift-postgres/apps/openshift-postgres.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,6 @@ | ||
spec: | ||
ignoreDifferences: | ||
- group: '' | ||
jsonPointers: | ||
- /imagePullSecrets | ||
kind: ServiceAccount |
8 changes: 8 additions & 0 deletions
8
tests/golden/openshift-postgres/openshift-postgres/openshift-postgres/00_namespace.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,8 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: {} | ||
labels: | ||
SYNMonitoring: main | ||
name: syn-openshift-postgres | ||
name: syn-openshift-postgres |
32 changes: 32 additions & 0 deletions
32
...nshift-postgres/openshift-postgres/01_keycloak_helmchart/keycloakx/templates/ingress.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,32 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-production | ||
nginx.ingress.kubernetes.io/backend-protocol: HTTPS | ||
route.openshift.io/termination: reencrypt | ||
labels: | ||
app.kubernetes.io/component: keycloak | ||
app.kubernetes.io/instance: openshift-postgres | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: keycloak | ||
app.kubernetes.io/version: 18.0.2 | ||
helm.sh/chart: keycloakx-1.6.0 | ||
name: keycloakx | ||
namespace: syn-openshift-postgres | ||
spec: | ||
rules: | ||
- host: keycloak.example.com | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: keycloakx-http | ||
port: | ||
name: https | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- hosts: | ||
- keycloak.example.com | ||
secretName: ingress-tls |
16 changes: 16 additions & 0 deletions
16
...postgres/openshift-postgres/01_keycloak_helmchart/keycloakx/templates/prometheusrule.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,16 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: keycloak | ||
app.kubernetes.io/instance: openshift-postgres | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: keycloak | ||
app.kubernetes.io/version: 18.0.2 | ||
helm.sh/chart: keycloakx-1.6.0 | ||
name: keycloakx | ||
namespace: syn-openshift-postgres | ||
spec: | ||
groups: | ||
- name: keycloakx | ||
rules: [] |
23 changes: 23 additions & 0 deletions
23
...stgres/openshift-postgres/01_keycloak_helmchart/keycloakx/templates/service-headless.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,23 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: headless | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: keycloakx | ||
app.kubernetes.io/version: 18.0.2 | ||
helm.sh/chart: keycloakx-1.6.0 | ||
name: keycloakx-headless | ||
namespace: syn-openshift-postgres | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- name: http | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: http | ||
selector: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
type: ClusterIP |
26 changes: 26 additions & 0 deletions
26
...t-postgres/openshift-postgres/01_keycloak_helmchart/keycloakx/templates/service-http.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,26 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: http | ||
app.kubernetes.io/instance: openshift-postgres | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: keycloak | ||
app.kubernetes.io/version: 18.0.2 | ||
helm.sh/chart: keycloakx-1.6.0 | ||
name: keycloakx-http | ||
namespace: syn-openshift-postgres | ||
spec: | ||
ports: | ||
- name: http | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: http | ||
- name: https | ||
port: 8443 | ||
protocol: TCP | ||
targetPort: https | ||
selector: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
type: ClusterIP |
14 changes: 14 additions & 0 deletions
14
...postgres/openshift-postgres/01_keycloak_helmchart/keycloakx/templates/serviceaccount.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,14 @@ | ||
apiVersion: v1 | ||
automountServiceAccountToken: true | ||
imagePullSecrets: [] | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: keycloak | ||
app.kubernetes.io/instance: openshift-postgres | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: keycloak | ||
app.kubernetes.io/version: 18.0.2 | ||
helm.sh/chart: keycloakx-1.6.0 | ||
name: keycloakx | ||
namespace: syn-openshift-postgres |
23 changes: 23 additions & 0 deletions
23
...postgres/openshift-postgres/01_keycloak_helmchart/keycloakx/templates/servicemonitor.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,23 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: keycloak | ||
app.kubernetes.io/instance: openshift-postgres | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: keycloak | ||
app.kubernetes.io/version: 18.0.2 | ||
helm.sh/chart: keycloakx-1.6.0 | ||
name: keycloakx-keycloakx | ||
namespace: syn-openshift-postgres | ||
spec: | ||
endpoints: | ||
- interval: 10s | ||
path: /auth/metrics | ||
port: http | ||
scrapeTimeout: 10s | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: http | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx |
Oops, something went wrong.