Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
4cbc6c3972 |
@ -7,7 +7,7 @@ resources:
|
|||||||
- ./resources/oauth2-client.yaml
|
- ./resources/oauth2-client.yaml
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: oidc-test-env
|
- name: oidc-test
|
||||||
literals:
|
literals:
|
||||||
- LOG_LEVEL=0
|
- LOG_LEVEL=0
|
||||||
- HTTP_ADDRESS=0.0.0.0:8080
|
- HTTP_ADDRESS=0.0.0.0:8080
|
||||||
|
@ -24,16 +24,16 @@ spec:
|
|||||||
resources: {}
|
resources: {}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: oidc-test-env
|
name: oidc-test
|
||||||
env:
|
env:
|
||||||
- name: OIDC_CLIENT_ID
|
- name: OIDC_CLIENT_ID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: oidc-test-oauth2-client
|
name: oidc-test-oauth2-client
|
||||||
key: CLIENT_ID
|
key: client_id
|
||||||
- name: OIDC_CLIENT_SECRET
|
- name: OIDC_CLIENT_SECRET
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: oidc-test-oauth2-client
|
name: oidc-test-oauth2-client
|
||||||
key: CLIENT_SECRET
|
key: client_secret
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
@ -10,6 +10,7 @@ resources:
|
|||||||
- ./resources/hydra-migrate-job.yaml
|
- ./resources/hydra-migrate-job.yaml
|
||||||
- ./resources/hydra-maester
|
- ./resources/hydra-maester
|
||||||
- ./resources/hydra-janitor-cronjob.yaml
|
- ./resources/hydra-janitor-cronjob.yaml
|
||||||
|
- ./resources/hydra-hpa.yaml
|
||||||
|
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: hydra-secret
|
- name: hydra-secret
|
||||||
|
@ -55,6 +55,9 @@ spec:
|
|||||||
name: hydra-public
|
name: hydra-public
|
||||||
- containerPort: 4445
|
- containerPort: 4445
|
||||||
name: hydra-admin
|
name: hydra-admin
|
||||||
resources: {}
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
|
||||||
|
26
resources/hydra/resources/hydra-hpa.yaml
Normal file
26
resources/hydra/resources/hydra-hpa.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: autoscaling/v2
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
name: hydra
|
||||||
|
labels:
|
||||||
|
io.kompose.service: hydra
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
name: hydra
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 3
|
||||||
|
metrics:
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: memory
|
||||||
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: 80
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: cpu
|
||||||
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: 80
|
@ -2,12 +2,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ./resources/hydra-maester-deployment.yaml
|
- ./resources/hydra-maester-deployment.yaml
|
||||||
- ./resources/hydra-maester-rbac.yaml
|
- ./resources/hydra-maester-rbac.yaml
|
||||||
#- https://raw.githubusercontent.com/ory/k8s/v0.28.2/helm/charts/hydra-maester/crds/crd-oauth2clients.yaml
|
- https://raw.githubusercontent.com/ory/k8s/v0.28.2/helm/charts/hydra-maester/crds/crd-oauth2clients.yaml
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: hydra-maester-env
|
- name: hydra-maester-env
|
||||||
literals:
|
literals:
|
||||||
- APP_ENV=prod
|
- APP_ENV=prod
|
||||||
- APP_DEBUG=false
|
- APP_DEBUG=false
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
# Source: hydra/charts/hydra-maester/templates/deployment.yaml
|
# Source: hydra/charts/hydra-maester/templates/deployment.yaml
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@ -6,7 +7,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: hydra-maester
|
app.kubernetes.io/name: hydra-maester
|
||||||
app.kubernetes.io/instance: hydra-master
|
app.kubernetes.io/instance: hydra-master
|
||||||
app.kubernetes.io/version: "v0.0.32"
|
app.kubernetes.io/version: "v0.0.23"
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
revisionHistoryLimit: 10
|
revisionHistoryLimit: 10
|
||||||
@ -25,7 +26,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hydra-maester
|
- name: hydra-maester
|
||||||
image: reg.cadoles.com/proxy_cache/oryd/hydra-maester:v0.0.32-amd64
|
image: reg.cadoles.com/proxy_cache/oryd/hydra-maester:v0.0.25
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
@ -37,7 +38,8 @@ spec:
|
|||||||
- --hydra-url=$(HYDRA_ADMIN_BASE_URL)
|
- --hydra-url=$(HYDRA_ADMIN_BASE_URL)
|
||||||
- --hydra-port=$(HYDRA_ADMIN_PORT)
|
- --hydra-port=$(HYDRA_ADMIN_PORT)
|
||||||
- --endpoint=/admin/clients
|
- --endpoint=/admin/clients
|
||||||
resources: {}
|
resources:
|
||||||
|
{}
|
||||||
terminationMessagePath: /dev/termination-log
|
terminationMessagePath: /dev/termination-log
|
||||||
terminationMessagePolicy: File
|
terminationMessagePolicy: File
|
||||||
securityContext:
|
securityContext:
|
||||||
|
Reference in New Issue
Block a user