openscanhub: add configurations for hub

Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
This commit is contained in:
Siteshwar Vashisht 2023-11-27 10:33:53 +01:00 committed by zlopez
parent ab702dee43
commit c5ac88d235
3 changed files with 128 additions and 0 deletions

View file

@ -0,0 +1,71 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
alpha.image.policy.openshift.io/resolve-names: '*'
app.openshift.io/route-disabled: "false"
app.openshift.io/vcs-ref: ""
app.openshift.io/vcs-uri: https://github.com/siteshwar/openscanhub-deployment-configs.git
deployment.kubernetes.io/revision: "9"
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"fedora-osh-hub:latest","namespace":"openscanhub"},"fieldPath":"spec.template.spec.containers[?(@.name==\"fedora-osh-hub\")].image","pause":"false"}]'
openshift.io/generated-by: OpenShiftWebConsole
generation: 9
labels:
app: fedora-osh-hub
app.kubernetes.io/component: fedora-osh-hub
app.kubernetes.io/instance: fedora-osh-hub
app.kubernetes.io/name: fedora-osh-hub
app.kubernetes.io/part-of: openscanhub
name: fedora-osh-hub
namespace: openscanhub
resourceVersion: "2902507635"
uid: 752d6a40-41e4-4c2a-ba01-1ee5076c7661
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: fedora-osh-hub
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: fedora-osh-hub
deployment: fedora-osh-hub
spec:
containers:
- image: quay.io/openscanhub-fedora-infra/ocp:staging
imagePullPolicy: Always
name: fedora-osh-hub
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/osh/
name: openscanhub-pvc-var-lib-osh
- mountPath: /mnt/osh-configs
name: openscanhub-pvc-osh-configs
- mountPath: /etc/keytabs
name: openscanhub-keytab
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: openscanhub-pvc-var-lib-osh
persistentVolumeClaim:
claimName: openscanhub-pvc-var-lib-osh
- name: openscanhub-pvc-osh-configs
persistentVolumeClaim:
claimName: openscanhub-pvc-osh-configs
- name: openscanhub-keytab
secret:
defaultMode: 420
secretName: openscanhub-keytab

View file

@ -0,0 +1,25 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: fedora-osh-hub
app.kubernetes.io/component: fedora-osh-hub
app.kubernetes.io/instance: fedora-osh-hub
app.kubernetes.io/name: fedora-osh-hub
app.kubernetes.io/part-of: openscanhub
# TODO: This should be a template and use production for production instance.
name: staging
namespace: openscanhub
resourceVersion: "2899601169"
uid: 1c280b7f-39a4-40fc-a850-396147e1c1af
spec:
port:
targetPort: 8080-tcp
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: fedora-osh-hub
weight: 100
wildcardPolicy: None

View file

@ -0,0 +1,32 @@
apiVersion: v1
kind: Service
metadata:
annotations:
app.openshift.io/vcs-ref: ""
app.openshift.io/vcs-uri: https://github.com/siteshwar/openscanhub-deployment-configs.git
openshift.io/generated-by: OpenShiftWebConsole
labels:
app: fedora-osh-hub
app.kubernetes.io/component: fedora-osh-hub
app.kubernetes.io/instance: fedora-osh-hub
app.kubernetes.io/name: fedora-osh-hub
app.kubernetes.io/part-of: openscanhub
name: fedora-osh-hub
namespace: openscanhub
resourceVersion: "2899601165"
uid: 33917870-d8f2-4618-89fa-85c6fd44b071
spec:
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: fedora-osh-hub
deployment: fedora-osh-hub
sessionAffinity: None
type: ClusterIP