-
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.
fix(ingress): Fix ingress issue & add support of PVC
- Loading branch information
Showing
24 changed files
with
757 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// | ||
// Keycloak deployment minimum requirdement | ||
// | ||
// ! Not for prodution usage, Keycloak configuration is store on an empty directory | ||
// | ||
|
||
@if(!debug) | ||
|
||
package main | ||
|
||
// Defaults | ||
values: { | ||
|
||
#hostname: "keycloak.kube-playground.tolron.fr" | ||
|
||
pvcCreate: true | ||
pvc: { | ||
size: "100M" | ||
storageClassName: "sc-kube-playground" | ||
} | ||
|
||
httpPort: 80 | ||
service: port: 80 | ||
|
||
resources: { | ||
limits: { | ||
cpu: "1000m" | ||
memory: "768Mi" | ||
} | ||
} | ||
|
||
securityContext: { | ||
runAsUser: 0 | ||
runAsGroup: 0 | ||
runAsNonRoot: false | ||
capabilities: | ||
{ | ||
add: ["NET_BIND_SERVICE"] | ||
drop: ["ALL"] | ||
} | ||
} | ||
|
||
ingress: { | ||
ingressClassName: "ing-kube-playground" | ||
tls: [{ | ||
hosts: [#hostname] | ||
secretName: "cert-kubeplayground" | ||
}, | ||
] | ||
rules: [{ | ||
host: #hostname | ||
http: { | ||
paths: [{ | ||
pathType: "Prefix" | ||
path: "/" | ||
backend: { | ||
service: { | ||
name: "keycloak-web" | ||
port: { | ||
number: 80 | ||
} | ||
}} | ||
}] | ||
}}] | ||
} | ||
|
||
admin: { | ||
password: {value: "admin"} | ||
} | ||
|
||
extraEnvs: [ | ||
{name: "KC_HOSTNAME_STRICT", value: "false"}, | ||
{name: "KC_PROXY", value: "edge"}, | ||
] | ||
|
||
} |
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
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 @@ | ||
package templates | ||
|
||
import ( | ||
corev1 "k8s.io/api/core/v1" | ||
) | ||
|
||
#PersistentVolumeClaim: corev1.#PersistentVolumeClaim & { | ||
#config: #Config | ||
apiVersion: "v1" | ||
kind: "PersistentVolumeClaim" | ||
|
||
metadata: #config.metadata | ||
spec: { | ||
volumeMode: "Filesystem" | ||
accessModes: ["ReadWriteOnce"] | ||
storageClassName: #config.pvc.storageClassName | ||
resources: { | ||
requests: { | ||
storage: #config.pvc.size | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.