63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: atlas-admin-identity-proxy
|
|
data:
|
|
identity.conf: |
|
|
location ^~ /auth/realms/item-atlas-admin-preview/ {
|
|
proxy_pass http://atlas-admin-keycloak:8080;
|
|
proxy_set_header Host 127.0.0.1:18482;
|
|
proxy_set_header X-Forwarded-Host 127.0.0.1;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header X-Forwarded-Port 18482;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
}
|
|
location ^~ /auth/resources/ {
|
|
proxy_pass http://atlas-admin-keycloak:8080;
|
|
}
|
|
location = /auth { return 404; }
|
|
location ^~ /auth/ { return 404; }
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: item-atlas-admin
|
|
spec:
|
|
selector: {app: item-atlas-admin}
|
|
ports:
|
|
- {name: http, port: 8080}
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: item-atlas-admin
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels: {app: item-atlas-admin}
|
|
template:
|
|
metadata:
|
|
labels: {app: item-atlas-admin}
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- name: nginx
|
|
image: item-atlas-admin:admin-preview-0.1.2
|
|
imagePullPolicy: Never
|
|
env:
|
|
- {name: ATLAS_GATEWAY_URL, value: 'http://atlas-admin-gateway:8080'}
|
|
ports:
|
|
- {name: http, containerPort: 8080}
|
|
readinessProbe:
|
|
httpGet: {path: /healthz, port: http}
|
|
livenessProbe:
|
|
httpGet: {path: /healthz, port: http}
|
|
resources:
|
|
requests: {cpu: 10m, memory: 16Mi}
|
|
limits: {cpu: 250m, memory: 64Mi}
|
|
volumeMounts:
|
|
- {name: identity-proxy, mountPath: /etc/nginx/admin-identity, readOnly: true}
|
|
volumes:
|
|
- name: identity-proxy
|
|
configMap: {name: atlas-admin-identity-proxy}
|