debuginfod: remove openshift application, we are moving to vm's!

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-04-05 14:08:57 -07:00
parent bf27a4426c
commit de028e7e1a
7 changed files with 0 additions and 263 deletions

View file

@ -1,57 +0,0 @@
- name: make the app be real
hosts: os_masters_stg[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
roles:
- role: openshift/project
app: debuginfod
description: Fedora debuginfod server
appowners:
- fche
- amerey
- pingou
tags:
- apply-appowners
- role: openshift/object
app: debuginfod
file: buildconfig.yml
objectname: buildconfig.yml
- role: openshift/object
app: debuginfod
file: imagestream.yml
objectname: imagestream.yml
- role: openshift/object
app: debuginfod
file: service.yml
objectname: service.yml
- role: openshift/object
app: debuginfod
template: storage.yml
objectname: storage.yml
- role: openshift/route
app: debuginfod
routename: debuginfod
host: "debuginfod{{ env_suffix }}.fedoraproject.org"
serviceport: 8002
servicename: debuginfod
- role: openshift/start-build
app: debuginfod
buildname: debuginfod-build
objectname: debuginfod-build
- role: openshift/object
app: debuginfod
template: deploymentconfig.yml
objectname: deploymentconfig.yml

View file

@ -1,33 +0,0 @@
apiVersion: v1
items:
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
build: debuginfod-build
name: debuginfod-build
spec:
runPolicy: Serial
source:
dockerfile: |-
FROM fedora:33
LABEL \
maintainer="Frank Ch. Eigler <fche@redhat.com>" \
name="debuginfod" \
vendor="Fedora Infrastructure"
WORKDIR /
EXPOSE 8002
RUN dnf -y install bsdtar elfutils-debuginfod sqlite procps-ng rsync tar && \
dnf autoremove -y
type: Dockerfile
strategy:
type: Docker
output:
to:
kind: ImageStreamTag
name: debuginfod:latest
triggers:
- type: ConfigChange
- type: ImageChange
kind: List
metadata: {}

View file

@ -1,10 +0,0 @@
apiVersion: v1
items:
- apiVersion: v1
kind: ImageStream
metadata:
name: debuginfod
labels:
build: debuginfod
kind: List
metadata: {}

View file

@ -1,15 +0,0 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: debuginfod
name: debuginfod
spec:
ports:
- name: http
port: 8002
protocol: TCP
targetPort: 8002
selector:
app: debuginfod
deploymentconfig: debuginfod

View file

@ -1,83 +0,0 @@
---
apiVersion: v1
kind: DeploymentConfig
metadata:
name: debuginfod
labels:
app: debuginfod
spec:
replicas: 1
selector:
app: debuginfod
deploymentconfig: debuginfod
strategy:
type: Recreate
template:
metadata:
labels:
app: debuginfod
deploymentconfig: debuginfod
spec:
selector:
app: debuginfod
deploymentconfig: debuginfod
containers:
- name: debuginfod
image: debuginfod:latest
command: ["/usr/bin/debuginfod",
"-vv",
"-d", "/var/cache/debuginfod/db.sqlite",
# Set # of scanning threads - on a 4cpu host node, >4 can mask koji NFS latency,
# but can't do much about storage NFS latency. If too high, can strain memory
# during analyzing large debuginfo binaries.
"-c", "6",
"-t", "3600",
"-g", "604800",
# exclude signed etc. variants, just want original RPMs
"-X", "/data/",
"-R", "/mnt/koji/packages",
"-I", "\\.(module_f|fc)(32|33|34|35)[.+].*\\.rpm$"]
ports:
- containerPort: 8002
resources:
requests:
memory: 12000Mi
cpu: 1000m
volumeMounts:
- name: debuginfod-storage{{ '-stg' if env == 'staging' else '' }}
mountPath: /var/cache/debuginfod
readOnly: false
- name: fedora-koji
mountPath: /mnt
readOnly: true
readinessProbe:
timeoutSeconds: 1
initialDelaySeconds: 30
httpGet:
path: /metrics
port: 8002
livenessProbe:
timeoutSeconds: 1
initialDelaySeconds: 30
periodSeconds: 30
httpGet:
path: /metrics
port: 8002
volumes:
- name: debuginfod-storage{{ '-stg' if env == 'staging' else '' }}
persistentVolumeClaim:
claimName: debuginfod-storage{{ '-stg' if env == 'staging' else '' }}
- name: fedora-koji
persistentVolumeClaim:
claimName: fedora-koji
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames: ["debuginfod"]
from:
kind: ImageStreamTag
name: debuginfod:latest

View file

@ -1,26 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: fedora-koji
spec:
storageClassName: ""
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 1Mi
volumeName: fedora-koji
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: debuginfod-storage{{ '-stg' if env == 'staging' else '' }}
spec:
storageClassName: ""
accessModes:
- ReadWriteMany
resources:
requests:
storage: 300Gi
volumeName: debuginfod-storage{{ '-stg' if env == 'staging' else '' }}

View file

@ -1,39 +0,0 @@
---
kind: DeploymentConfig
apiVersion: v1
metadata:
name: debuginfod
labels:
app: debuginfod
spec:
strategy:
resources: {}
replicas: 1
test: false
selector:
name: debuginfod
template:
metadata:
labels:
name: debuginfod
app: debuginfod
service: debuginfod
name: debuginfod
spec:
volumes:
- name: koji
nfs:
path: /
server: 10.33.1.90
readOnly: true
containers:
- name: debuginfod
image: quay.io/fedora-infrastructure/debuginfod:latest
command: ["debuginfod"]
args:
- "-R"
- "/mnt/koji"
ports:
- containerPort: 8000
triggers:
- type: ConfigChange