Prepare FASJSON for the new certificate profile setting

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2020-10-14 10:58:08 +02:00
parent 5c71822352
commit ca8a00dc54
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
3 changed files with 64 additions and 57 deletions

View file

@ -15,6 +15,8 @@ items:
{{ load_file('start.sh') | indent(6) }}
httpd.conf: |-
{{ load_file('httpd.conf') | indent(6) }}
fasjson.conf: |-
{{ load_file('fasjson.conf') | indent(6) }}
- apiVersion: v1
kind: ConfigMap
metadata:

View file

@ -26,62 +26,65 @@ spec:
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
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
- 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: {}
- 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
- imageChangeParams:
automatic: true
containerNames:
- fasjson
from:
kind: ImageStreamTag
name: fasjson:latest
type: ImageChange
- type: ConfigChange

View file

@ -0,0 +1,2 @@
# The ID of the Certificate Profile to use in IPA
CERTIFICATE_PROFILE = "userCerts"