W2FM: setup FASJSON access
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
c6db9c2120
commit
5bbdd6c420
2 changed files with 27 additions and 0 deletions
|
@ -84,6 +84,7 @@
|
||||||
file: service.yml
|
file: service.yml
|
||||||
objectname: service.yml
|
objectname: service.yml
|
||||||
|
|
||||||
|
# Routes
|
||||||
- role: openshift/route
|
- role: openshift/route
|
||||||
app: webhook2fedmsg
|
app: webhook2fedmsg
|
||||||
routename: web
|
routename: web
|
||||||
|
@ -97,6 +98,16 @@
|
||||||
serviceport: web
|
serviceport: web
|
||||||
servicename: web
|
servicename: web
|
||||||
|
|
||||||
|
# FASJSON access
|
||||||
|
- role: openshift/ipa-client
|
||||||
|
app: webhook2fedmsg
|
||||||
|
- role: openshift/keytab
|
||||||
|
app: webhook2fedmsg
|
||||||
|
key: service.keytab
|
||||||
|
secret_name: keytab
|
||||||
|
service: webhook2fedmsg
|
||||||
|
|
||||||
|
# Deployment config
|
||||||
- role: openshift/object
|
- role: openshift/object
|
||||||
app: webhook2fedmsg
|
app: webhook2fedmsg
|
||||||
template: deploymentconfig.yml
|
template: deploymentconfig.yml
|
||||||
|
|
|
@ -35,6 +35,10 @@ spec:
|
||||||
value: "/etc/webhook-to-fedora-messaging/webhook-to-fedora-messaging.cfg"
|
value: "/etc/webhook-to-fedora-messaging/webhook-to-fedora-messaging.cfg"
|
||||||
- name: APP_SCRIPT
|
- name: APP_SCRIPT
|
||||||
value: "/opt/app-root/bin/uvicorn --host 0.0.0.0 --port 8080 --log-config /etc/webhook-to-fedora-messaging/logging.yaml --factory webhook_to_fedora_messaging.main:create_app"
|
value: "/opt/app-root/bin/uvicorn --host 0.0.0.0 --port 8080 --log-config /etc/webhook-to-fedora-messaging/logging.yaml --factory webhook_to_fedora_messaging.main:create_app"
|
||||||
|
- name: KRB5_CONFIG
|
||||||
|
value: /etc/ipa/krb5.conf
|
||||||
|
- name: KRB5_CLIENT_KTNAME
|
||||||
|
value: /etc/keytabs/service.keytab
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
@ -42,6 +46,12 @@ spec:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: "/etc/webhook-to-fedora-messaging"
|
mountPath: "/etc/webhook-to-fedora-messaging"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: ipa-config-volume
|
||||||
|
mountPath: /etc/ipa
|
||||||
|
readOnly: true
|
||||||
|
- name: keytab-volume
|
||||||
|
mountPath: /etc/keytabs
|
||||||
|
readOnly: true
|
||||||
- name: fedora-messaging-config
|
- name: fedora-messaging-config
|
||||||
mountPath: "/etc/fedora-messaging"
|
mountPath: "/etc/fedora-messaging"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -75,6 +85,12 @@ spec:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: config
|
name: config
|
||||||
|
- name: ipa-config-volume
|
||||||
|
configMap:
|
||||||
|
name: ipa-client-config
|
||||||
|
- name: keytab-volume
|
||||||
|
secret:
|
||||||
|
secretName: keytab
|
||||||
- name: fedora-messaging-config
|
- name: fedora-messaging-config
|
||||||
configMap:
|
configMap:
|
||||||
name: fedora-messaging-config
|
name: fedora-messaging-config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue