Skip to content

Instantly share code, notes, and snippets.

@ogero
Created May 15, 2019 14:52
Show Gist options
  • Save ogero/fdf2e17b525c35dc395facb946aadb8a to your computer and use it in GitHub Desktop.
Save ogero/fdf2e17b525c35dc395facb946aadb8a to your computer and use it in GitHub Desktop.
---
# Source: hydra/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: release-name-hydra
labels:
app.kubernetes.io/name: hydra
app.kubernetes.io/instance: release-name
app.kubernetes.io/managed-by: Tiller
helm.sh/chart: hydra-0.1.0
data:
config.yaml: |
log:
format: json
level: info
oauth2:
expose_internal_errors: true
hashers:
bcrypt:
cost: 10
ttl:
access_token: 1h
auth_code: 10m
id_token: 1h
login_consent_request: 1h
refresh_token: 720h
secrets:
cookie:
- this-is-the-primary-secret
system:
- this-is-the-primary-secret
serve:
tls:
allow_termination_from:
- 0.0.0.0/0
urls:
consent: https://my-consent.app/consent
error: https://my-error.app/error
login: https://my-login.app/login
post_logout_redirect: https://my-example.app/logout-successful
self:
issuer: https://localhost:4444/
public: https://localhost:4444/
---
# Source: hydra/templates/service.yaml
kind: Service
apiVersion: v1
metadata:
name: release-name-hydra
labels:
app.kubernetes.io/name: hydra
app.kubernetes.io/instance: release-name
app.kubernetes.io/managed-by: Tiller
helm.sh/chart: hydra-0.1.0
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hydra
ports:
- name: service
port: 4444
targetPort: 4444
protocol: TCP
---
# Source: hydra/templates/deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: release-name-hydra
labels:
app.kubernetes.io/name: hydra
app.kubernetes.io/instance: release-name
app.kubernetes.io/managed-by: Tiller
helm.sh/chart: hydra-0.1.0
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: hydra
template:
metadata:
name: release-name-hydra
labels:
app.kubernetes.io/name: hydra
app.kubernetes.io/instance: release-name
app.kubernetes.io/managed-by: Tiller
helm.sh/chart: hydra-0.1.0
spec:
containers:
- name: hydra
image: "oryd/hydra:v1.0.0"
imagePullPolicy: "IfNotPresent"
args:
- serve
- all
- --config=/hydra/config.yaml
ports:
- name: service
containerPort: 4444
env:
- name: DSN
value: memory
volumeMounts:
- name: config
mountPath: /hydra
livenessProbe:
httpGet:
path: /health/alive
port: 4444
initialDelaySeconds: 3
periodSeconds: 3
resources:
{}
volumes:
- name: config
configMap:
name: release-name-hydra
---
# Source: hydra/templates/ingress.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment