mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 20:12:54 +08:00
message-tagging-service: Initial deployment
This commit is contained in:
@@ -8,7 +8,16 @@
|
||||
- /srv/private/ansible/vars.yml
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
- /srv/web/infra/ansible/roles/openshift-apps/message-tagging-service/vars/main.yml
|
||||
# - /srv/web/infra/ansible/roles/openshift-apps/message-tagging-service/vars/{{ env }}.yml
|
||||
- /srv/web/infra/ansible/roles/openshift-apps/message-tagging-service/vars/{{ env }}.yml
|
||||
|
||||
roles:
|
||||
- openshift/project
|
||||
|
||||
tasks:
|
||||
- name: Apply objects
|
||||
include_role: name=openshift/object
|
||||
vars:
|
||||
template: "{{ item }}.yml"
|
||||
objectname: "{{ item }}.yml"
|
||||
with_items:
|
||||
- deployment
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# https://docs.openshift.com/container-platform/3.11/rest_api/oapi/v1.DeploymentConfig.html#object-schema
|
||||
apiVersion: v1
|
||||
kind: DeploymentConfig
|
||||
metadata:
|
||||
name: mts
|
||||
labels:
|
||||
service: mts
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
service: mts
|
||||
strategy:
|
||||
type: Rolling
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
service: mts
|
||||
spec:
|
||||
containers:
|
||||
- name: message-tagging-service
|
||||
image: quay.io/factory2/message-tagging-service:{{quay_tag}}
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
# volumeMounts:
|
||||
# - name: config
|
||||
# mountPath: /etc/mts
|
||||
# readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 2000m
|
||||
memory: 512Mi
|
||||
readinessProbe:
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 5
|
||||
httpGet:
|
||||
path: /
|
||||
port: 8080
|
||||
livenessProbe:
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 30
|
||||
httpGet:
|
||||
path: /
|
||||
port: 8080
|
||||
# volumes:
|
||||
# - name: config
|
||||
# secret:
|
||||
# secretName: mts-config
|
||||
@@ -0,0 +1,2 @@
|
||||
# https://quay.io/repository/factory2/message-tagging-service?tab=tags
|
||||
quay_tag: prod
|
||||
@@ -0,0 +1,2 @@
|
||||
# https://quay.io/repository/factory2/message-tagging-service?tab=tags
|
||||
quay_tag: stage
|
||||
Reference in New Issue
Block a user