Add dc object
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
7292879a88
commit
d6fc29f6f2
1 changed files with 14 additions and 12 deletions
|
@ -3,7 +3,11 @@ kind: DeploymentConfig
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: fas
|
app: fas
|
||||||
|
{% if objectname == "deploymentconfig-totpcgi-vpn.yml" %}
|
||||||
|
service: totpcgi-vpn
|
||||||
|
{% else %}
|
||||||
service: totpcgi
|
service: totpcgi
|
||||||
|
{% endif %}
|
||||||
name: totpcgi
|
name: totpcgi
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
|
@ -26,7 +30,11 @@ spec:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
labels:
|
labels:
|
||||||
app: fas
|
app: fas
|
||||||
|
{% if objectname == "deploymentconfig-totpcgi-vpn.yml" %}
|
||||||
|
deploymentconfig: totpcgi-vpn
|
||||||
|
{% else %}
|
||||||
deploymentconfig: totpcgi
|
deploymentconfig: totpcgi
|
||||||
|
{% endif %}
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: totpcgi
|
- name: totpcgi
|
||||||
|
@ -43,27 +51,21 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: httpdir-volume
|
- name: httpdir-volume
|
||||||
mountPath: /httpdir
|
mountPath: /httpdir
|
||||||
- name: secret-tls-primary
|
- name: secret-tls
|
||||||
mountPath: /etc/pki/totp_primary
|
mountPath: /etc/pki/totp
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{% if env == "production" %}
|
|
||||||
- name: secret-tls-vpn
|
|
||||||
mountPath: /etc/pki/totp_vpn
|
|
||||||
readOnly: true
|
|
||||||
{% endif %}
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: totpcgi
|
name: totpcgi
|
||||||
- name: httpdir-volume
|
- name: httpdir-volume
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: secret-tls-primary
|
- name: secret-tls
|
||||||
secret:
|
|
||||||
secretName: tls-cert-primary
|
|
||||||
{% if env == "production" %}
|
|
||||||
- name: secret-tls-vpn
|
|
||||||
secret:
|
secret:
|
||||||
|
{% if objectname == "deploymentconfig-totpcgi-vpn.yml" %}
|
||||||
secretName: tls-cert-vpn
|
secretName: tls-cert-vpn
|
||||||
|
{% else %}
|
||||||
|
secretName: tls-cert-primary
|
||||||
{% endif %}
|
{% endif %}
|
||||||
triggers:
|
triggers:
|
||||||
- imageChangeParams:
|
- imageChangeParams:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue