Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
168 lines (167 sloc) 3.23 KB
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jwtserver-application
spec:
replicas: 1
template:
metadata:
labels:
app: jwtserver-application
spec:
containers:
- name: master
image: andreassolberg/jwtserver:latest # or just image: redishello:1.0
env:
- name: ESSOURCE
value: "serviceprovider"
- name: ISSUER
value: "https://serviceprovider.andreas.labs.uninett.no/application1007"
- name: KEY
value: "key1"
resources:
requests:
cpu: 10m
memory: 50Mi
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: jwtserver-application
labels:
app: jwtserver-application
spec:
type: NodePort
ports:
- port: 3000
protocol: TCP
selector:
app: jwtserver-application
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jwtserver-ntnu
spec:
replicas: 1
template:
metadata:
labels:
app: jwtserver-ntnu
spec:
containers:
- name: master
image: andreassolberg/jwtserver:latest
env:
- name: ESSOURCE
value: "ntnu"
- name: ISSUER
value: "https://ntnu.andreas.labs.uninett.no/"
- name: KEY
value: "ntnu"
resources:
requests:
cpu: 10m
memory: 50Mi
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: jwtserver-ntnu
labels:
app: jwtserver-ntnu
spec:
type: NodePort
ports:
- port: 3000
protocol: TCP
selector:
app: jwtserver-ntnu
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jwtserver-feide
spec:
replicas: 1
template:
metadata:
labels:
app: jwtserver-feide
spec:
containers:
- name: master
image: andreassolberg/jwtserver:latest
env:
- name: ESSOURCE
value: "feide"
- name: ISSUER
value: "https://feide.andreas.labs.uninett.no/jwtfederation"
- name: KEY
value: "feide"
resources:
requests:
cpu: 10m
memory: 50Mi
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: jwtserver-feide
labels:
app: jwtserver-feide
spec:
type: NodePort
ports:
- port: 3000
protocol: TCP
selector:
app: jwtserver-feide
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jwtserver-edugain
spec:
replicas: 1
template:
metadata:
labels:
app: jwtserver-edugain
spec:
containers:
- name: master
image: andreassolberg/jwtserver:latest
env:
- name: ESSOURCE
value: "edugain"
- name: ISSUER
value: "https://edugain.andreas.labs.uninett.no/openid"
- name: KEY
value: "edugain"
resources:
requests:
cpu: 10m
memory: 50Mi
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: jwtserver-edugain
labels:
app: jwtserver-edugain
spec:
type: NodePort
ports:
- port: 3000
protocol: TCP
selector:
app: jwtserver-edugain