Initial attempt at hosting ipsilon-project.org. Not functional at the moment.

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2022-05-25 18:42:42 +02:00
parent b5be505576
commit 5561df1b1d
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
4 changed files with 145 additions and 0 deletions

View file

@ -0,0 +1,49 @@
- name: make the app be real
hosts: os_control_stg[0]:os_control[0]
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
vars:
roles:
- role: openshift/project
app: ipsilon-website
description: "ipsilon-project.org"
appowners:
- abompard
- puiterwijk
tags:
- apply-appowners
- role: openshift/imagestream
app: ipsilon-website
imagename: ipsilon-website
- role: openshift/object
app: ipsilon-website
template: buildconfig.yml
objectname: buildconfig.yml
- role: openshift/object
app: ipsilon-website
file: service.yml
objectname: service.yml
- role: openshift/route
app: ipsilon-website
routename: web
host: "ipsilon-website.apps.ocp{{ env_suffix }}.fedoraproject.org"
serviceport: web
servicename: web
annotations:
haproxy.router.openshift.io/timeout: 5m
- role: openshift/object
app: ipsilon-website
template: deploymentconfig.yml
objectname: deploymentconfig.yml

View file

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: web
labels:
app: ipsilon-website
spec:
ports:
- name: web
port: 8080
targetPort: 8080
selector:
app: ipsilon-website
deploymentconfig: web

View file

@ -0,0 +1,24 @@
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: web
labels:
app: ipsilon-website
build: ipsilon-website
spec:
runPolicy: Serial
source:
type: Git
git:
uri: https://pagure.io/ipsilon-website.git
ref: master
contextDir: /
strategy:
type: Docker
output:
to:
kind: ImageStreamTag
name: ipsilon-website:latest
triggers:
- type: ConfigChange
- type: ImageChange

View file

@ -0,0 +1,58 @@
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: web
labels:
app: ipsilon-website
spec:
replicas: 1
selector:
app: ipsilon-website
deploymentconfig: web
strategy:
type: Rolling
activeDeadlineSeconds: 21600
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
template:
metadata:
creationTimestamp: null
labels:
app: ipsilon-website
deploymentconfig: web
spec:
containers:
- name: ipsilon-website
imagePullPolicy: Always
ports:
- containerPort: 8080
#protocol: TCP
readinessProbe:
timeoutSeconds: 5
initialDelaySeconds: 30
httpGet:
path: /
port: 8080
livenessProbe:
timeoutSeconds: 5
initialDelaySeconds: 30
httpGet:
path: /
port: 8080
#resources: {}
#terminationMessagePath: /dev/termination-log
#terminationMessagePolicy: File
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- ipsilon-website
from:
kind: ImageStreamTag
name: ipsilon-website:latest