coreos-cincinnati: Move from deprecated DeploymentConfig to Deployment
First try aat move from deprecated DeploymentConfig to Deployment using staging environment. See: https://github.com/jbtrystram/coreos-hackathon/issues/13
This commit is contained in:
parent
1d5588e5ab
commit
91beda6fc4
2 changed files with 70 additions and 0 deletions
|
@ -56,6 +56,13 @@
|
||||||
object_app: coreos-cincinnati
|
object_app: coreos-cincinnati
|
||||||
object_template: deploymentconfig.yml
|
object_template: deploymentconfig.yml
|
||||||
object_objectname: deploymentconfig.yml
|
object_objectname: deploymentconfig.yml
|
||||||
|
when: env == "production"
|
||||||
|
|
||||||
|
- role: openshift/object
|
||||||
|
object_app: coreos-cincinnati
|
||||||
|
object_template: deployment.yml.j2
|
||||||
|
object_objectname: deployment.yml
|
||||||
|
when: env == "staging"
|
||||||
|
|
||||||
- role: openshift/rollout
|
- role: openshift/rollout
|
||||||
rollout_app: coreos-cincinnati
|
rollout_app: coreos-cincinnati
|
||||||
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: coreos-cincinnati
|
||||||
|
name: coreos-cincinnati
|
||||||
|
annotations:
|
||||||
|
image.openshift.io/triggers: >-
|
||||||
|
[
|
||||||
|
{"from":{"kind":"ImageStreamTag","name":"coreos-cincinnati-img:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"fcos-graph-builder\")].image","paused":false},
|
||||||
|
{"from":{"kind":"ImageStreamTag","name":"coreos-cincinnati-img:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"fcos-policy-engine\")].image","paused":false}
|
||||||
|
]
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: coreos-cincinnati
|
||||||
|
strategy:
|
||||||
|
activeDeadlineSeconds: 21600
|
||||||
|
recreateParams:
|
||||||
|
timeoutSeconds: 600
|
||||||
|
resources: {}
|
||||||
|
rollingParams:
|
||||||
|
intervalSeconds: 1
|
||||||
|
maxSurge: 25%
|
||||||
|
maxUnavailable: 25%
|
||||||
|
timeoutSeconds: 600
|
||||||
|
updatePeriodSeconds: 1
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: coreos-cincinnati
|
||||||
|
name: coreos-cincinnati
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: fcos-graph-builder
|
||||||
|
image: ""
|
||||||
|
args: [
|
||||||
|
"/usr/local/bin/fcos-graph-builder",
|
||||||
|
"-v",
|
||||||
|
"-c", "/etc/cincinnati/graph-builder.toml",
|
||||||
|
]
|
||||||
|
volumeMounts:
|
||||||
|
- name: stub-config
|
||||||
|
mountPath: /etc/cincinnati/
|
||||||
|
readOnly: true
|
||||||
|
- name: fcos-policy-engine
|
||||||
|
image: ""
|
||||||
|
args: [
|
||||||
|
"/usr/local/bin/fcos-policy-engine",
|
||||||
|
"-v",
|
||||||
|
"-c", "/etc/cincinnati/policy-engine.toml",
|
||||||
|
]
|
||||||
|
volumeMounts:
|
||||||
|
- name: stub-config
|
||||||
|
mountPath: /etc/cincinnati/
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: stub-config
|
||||||
|
configMap:
|
||||||
|
name: coreos-cincinnati-config-stub
|
Loading…
Add table
Add a link
Reference in a new issue