forked from infra/ansible
badges: fix selectors and annotations
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
ba88e1c63b
commit
0f2dd689e0
1 changed files with 8 additions and 2 deletions
|
|
@ -6,11 +6,15 @@ metadata:
|
|||
name: frontend
|
||||
labels:
|
||||
app: badges
|
||||
deployment: frontend
|
||||
annotations:
|
||||
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"tahrir:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"frontend\")].image"}]'
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: badges
|
||||
deployment: frontend
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
|
|
@ -20,8 +24,6 @@ spec:
|
|||
metadata:
|
||||
labels:
|
||||
app: badges
|
||||
annotations:
|
||||
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"tahrir:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"frontend\")].image"}]'
|
||||
spec:
|
||||
containers:
|
||||
- name: frontend
|
||||
|
|
@ -114,11 +116,13 @@ metadata:
|
|||
name: consumer
|
||||
labels:
|
||||
app: badges
|
||||
deployment: consumer
|
||||
spec:
|
||||
replicas: {{ (env == 'production')|ternary(2, 1) }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: badges
|
||||
deployment: consumer
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
|
|
@ -198,11 +202,13 @@ metadata:
|
|||
labels:
|
||||
app: badges
|
||||
service: redis
|
||||
deployment: redis
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: badges
|
||||
deployment: redis
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue