Files
fedora-infra_ansible/roles/openshift-apps/webhook2fedmsg/templates/deploymentconfig.yml.j2
Ryan Lerch 0dbe45565c webhook2fedmsg - rename templates to .j2
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 08:37:30 +10:00

113 lines
3.2 KiB
Django/Jinja

---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: webhook2fedmsg
service: webhook2fedmsg
name: app
spec:
replicas: 1
selector:
app: webhook2fedmsg
deploymentconfig: app
strategy:
type: Recreate
recreateParams:
mid:
execNewPod:
command: [/opt/app-root/bin/w2fm, setup]
containerName: app
volumes:
- config
failurePolicy: Abort
template:
metadata:
labels:
app: webhook2fedmsg
deploymentconfig: app
spec:
containers:
- image: webhook2fedmsg:latest
name: app
env:
- name: KRB5_CONFIG
value: /etc/ipa/krb5.conf
- name: KRB5_CLIENT_KTNAME
value: /etc/keytabs/service.keytab
ports:
- containerPort: 8080
protocol: TCP
volumeMounts:
- name: config
mountPath: "/etc/webhook-to-fedora-messaging"
readOnly: true
- name: ipa-config-volume
mountPath: /etc/ipa
readOnly: true
- name: keytab-volume
mountPath: /etc/keytabs
readOnly: true
- name: fedora-messaging-config
mountPath: "/etc/fedora-messaging"
readOnly: true
- name: fedora-messaging-ca
mountPath: /etc/pki/fedora-messaging/cacert.pem
subPath: cacert.pem
readOnly: true
- name: fedora-messaging-crt
mountPath: /etc/pki/fedora-messaging/webhook2fedmsg-cert.pem
subPath: webhook2fedmsg-cert.pem
readOnly: true
- name: fedora-messaging-key
mountPath: /etc/pki/fedora-messaging/webhook2fedmsg-key.pem
subPath: webhook2fedmsg-key.pem
readOnly: true
# readinessProbe:
# timeoutSeconds: 10
# initialDelaySeconds: 5
# periodSeconds: 60
# httpGet:
# path: "/api/v1/healthz/ready"
# port: 8080
# livenessProbe:
# timeoutSeconds: 10
# initialDelaySeconds: 3
# periodSeconds: 60
# httpGet:
# path: "/api/v1/healthz/live"
# port: 8080
volumes:
- name: config
configMap:
name: config
- name: ipa-config-volume
configMap:
name: ipa-client-config
- name: keytab-volume
secret:
secretName: keytab
- name: fedora-messaging-config
configMap:
name: fedora-messaging-config
- name: fedora-messaging-ca
secret:
secretName: fedora-messaging-ca
- name: fedora-messaging-crt
secret:
secretName: fedora-messaging-crt
- name: fedora-messaging-key
secret:
secretName: fedora-messaging-key
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- app
from:
kind: ImageStreamTag
name: webhook2fedmsg:latest