Files
fedora-infra_ansible/roles/openshift-apps/fasjson/templates/deploymentconfig.yml
Aurélien Bompard ca8a00dc54 Prepare FASJSON for the new certificate profile setting
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2020-10-14 11:47:58 +02:00

91 lines
2.3 KiB
YAML

apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: fasjson
labels:
app: fasjson
spec:
replicas: 1
selector:
app: fasjson
deploymentconfig: fasjson
strategy:
type: Rolling
activeDeadlineSeconds: 21600
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
template:
metadata:
creationTimestamp: null
labels:
app: fasjson
deploymentconfig: fasjson
spec:
containers:
- name: fasjson
imagePullPolicy: Always
ports:
- containerPort: 8080
volumeMounts:
- name: keytab-http-volume
mountPath: /etc/keytabs/http
subPath: http
readOnly: true
- name: krb-config-volume
mountPath: /etc/krb5
readOnly: true
- name: fasjson-config-volume
mountPath: /etc/fasjson
readOnly: true
- name: ipa-config-volume
mountPath: /etc/ipa
readOnly: true
- name: httpdir
mountPath: /httpdir
env:
- name: FASJSON_CONFIG_PATH
value: "/etc/fasjson/fasjson.conf"
livenessProbe:
timeoutSeconds: 10
initialDelaySeconds: 10
periodSeconds: 60
httpGet:
path: /healthz/live
port: 8080
readinessProbe:
timeoutSeconds: 10
initialDelaySeconds: 5
periodSeconds: 60
httpGet:
path: /healthz/ready
port: 8080
volumes:
- name: fasjson-config-volume
configMap:
name: fasjson-config
- name: keytab-http-volume
secret:
secretName: fasjson-keytab-http
- name: krb-config-volume
configMap:
name: krb5-config
- name: ipa-config-volume
configMap:
name: ipa-client-config
- name: httpdir
emptyDir: {}
triggers:
- imageChangeParams:
automatic: true
containerNames:
- fasjson
from:
kind: ImageStreamTag
name: fasjson:latest
type: ImageChange
- type: ConfigChange