Skip to content

Commit e03a6d0

Browse files
authored
KubeArchive: install on stone-stage-p01 (#7342)
Signed-off-by: Hector Martinez <[email protected]>
1 parent a558d8e commit e03a6d0

File tree

8 files changed

+77
-14
lines changed

8 files changed

+77
-14
lines changed

argo-cd-apps/base/member/infra-deployments/kubearchive/kubearchive.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ spec:
1616
clusterDir: ""
1717
- list:
1818
elements:
19-
# - nameNormalized: stone-stage-p01
20-
# values.clusterDir: stone-stage-p01
19+
- nameNormalized: stone-stage-p01
20+
values.clusterDir: stone-stage-p01
2121
- nameNormalized: stone-stg-rh01
2222
values.clusterDir: stone-stg-rh01
2323
# Private

argo-cd-apps/overlays/staging-downstream/delete-applications.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@ metadata:
3030
name: quality-dashboard
3131
$patch: delete
3232
---
33-
# There is not RDS database provisioned yet for internal staging, starting with external staging only
34-
apiVersion: argoproj.io/v1alpha1
35-
kind: ApplicationSet
36-
metadata:
37-
name: kubearchive
38-
$patch: delete
39-
---
4033
# At this time we're starting with external staging
4134
apiVersion: argoproj.io/v1alpha1
4235
kind: ApplicationSet

components/konflux-ui/staging/stone-stage-p01/kubearchive.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

components/konflux-ui/staging/stone-stage-p01/kustomization.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ configMapGenerator:
99
- name: dex
1010
files:
1111
- dex-config.yaml
12-
- name: proxy-nginx-static
13-
files:
14-
- kubearchive.conf
15-
behavior: merge
1612

1713
patches:
1814
- path: add-service-certs-patch.yaml
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
apiVersion: external-secrets.io/v1beta1
3+
kind: ExternalSecret
4+
metadata:
5+
name: database-secret
6+
annotations:
7+
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
8+
argocd.argoproj.io/sync-wave: "-1"
9+
spec:
10+
dataFrom:
11+
- extract:
12+
key: integrations-output/external-resources/appsres09ue1/stone-stage-p01/kube-archive-staging-rds
13+
refreshInterval: 1h
14+
secretStoreRef:
15+
kind: ClusterSecretStore
16+
name: appsre-vault
17+
target:
18+
creationPolicy: Owner
19+
deletionPolicy: Delete
20+
name: kubearchive-database-credentials
21+
template:
22+
data:
23+
DATABASE_KIND: postgresql
24+
DATABASE_PORT: "5432"
25+
DATABASE_URL: '{{ index . "db.host" }}'
26+
DATABASE_PASSWORD: '{{ index . "db.password" }}'
27+
DATABASE_USER: '{{ index . "db.user" }}'
28+
DATABASE_DB: '{{ index . "db.name" }}'
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
apiVersion: route.openshift.io/v1
3+
kind: Route
4+
metadata:
5+
annotations:
6+
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
7+
argocd.argoproj.io/sync-wave: "0"
8+
haproxy.router.openshift.io/hsts_header: max-age=63072000
9+
haproxy.router.openshift.io/timeout: 86410s
10+
openshift.io/host.generated: "true"
11+
router.openshift.io/haproxy.health.check.interval: 86400s
12+
labels:
13+
app.kubernetes.io/name: "kubearchive-api-server"
14+
app.kubernetes.io/component: api-server
15+
app.kubernetes.io/part-of: kubearchive
16+
name: kubearchive-api-server
17+
namespace: product-kubearchive
18+
spec:
19+
port:
20+
targetPort: server
21+
tls:
22+
insecureEdgeTerminationPolicy: Redirect
23+
termination: reencrypt
24+
to:
25+
kind: Service
26+
name: kubearchive-api-server
27+
weight: 100
28+
wildcardPolicy: None
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- ../../development
6+
- kubearchive-routes.yaml
7+
- database-secret.yaml
8+
9+
namespace: product-kubearchive
10+
11+
patches:
12+
- patch: |-
13+
$patch: delete
14+
apiVersion: v1
15+
kind: Secret
16+
metadata:
17+
name: kubearchive-database-credentials
18+
namespace: kubearchive

components/policies/staging/stone-stage-p01/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
44
- ../base/
5+
- ../policies/kubearchive/
56
- ../policies/kueue/

0 commit comments

Comments
 (0)