forked from kagenti/kagenti-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo-app-deployment.yaml
More file actions
55 lines (55 loc) · 1.14 KB
/
demo-app-deployment.yaml
File metadata and controls
55 lines (55 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-app
labels:
app: demo-app
spec:
replicas: 1
selector:
matchLabels:
app: demo-app
template:
metadata:
labels:
app: demo-app
spec:
containers:
- name: demo-app
image: localhost/demo-app:latest
imagePullPolicy: Never
ports:
- containerPort: 8081
- containerPort: 8443
env:
- name: ISSUER
value: "http://keycloak.localtest.me:8080/realms/kagenti"
- name: JWKS_URL
value: "http://keycloak-service.keycloak.svc.cluster.local:8080/realms/kagenti/protocol/openid-connect/certs"
- name: AUDIENCE
value: "demoapp"
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: demo-app-service
spec:
selector:
app: demo-app
ports:
- protocol: TCP
port: 8081
targetPort: 8081
name: http
- protocol: TCP
port: 8443
targetPort: 8443
name: https
type: ClusterIP