Skip to content

Commit

Permalink
fix ephemeral deployment (#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
juandspy authored Dec 19, 2023
1 parent 96eace9 commit 1484397
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
13 changes: 11 additions & 2 deletions deploy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deployment
# Deploying in ephemeral for troubleshooting and local testing

## Testing the local version of the cache-writer in ephemeral
In order to reserve a namespace, follow these steps:

1. Install `bonfire`
```
Expand All @@ -18,6 +18,15 @@ oc login --token=${TOKEN} --server=https://api.c-rh-c-eph.8p0c.p1.openshiftapps.
NAMESPACE=$(bonfire namespace reserve)
```

## Testing the local version of the dvo-writer

4. Deploy the dvo-writer
```
bonfire deploy -c deploy/test-dvo-writer.yaml -n $NAMESPACE --component dvo-writer ccx-data-pipeline
```

## Testing the local version of the cache-writer

4. Deploy the cache-writer and Redis workloads
```
bonfire deploy -c deploy/test-cache-writer.yaml -n $NAMESPACE ccx-data-pipeline
Expand Down
17 changes: 17 additions & 0 deletions deploy/dvo-writer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,21 @@ objects:
pod: dvo-writer-instance

parameters:
- description: Env Name
name: ENV_NAME
required: true
- description: Image name
name: IMAGE
value: quay.io/cloudservices/insights-results-aggregator
- description: Image tag
name: IMAGE_TAG
required: true
- description: Minimum number of pods to use when autoscaling is enabled
name: MIN_REPLICAS
value: '2'
- description: Maximum number of pods to use when autoscaling is enabled
name: MAX_REPLICAS
value: '6'
- name: PG_PARAMS
value: sslmode=require
- name: KAFKA_BOOTSTRAP_HOST
Expand Down Expand Up @@ -311,3 +326,5 @@ parameters:
required: true
- name: CREATE_STREAM_IF_NOT_EXISTS
value: "true"
- name: LOG_LEVEL
value: "INFO"
34 changes: 34 additions & 0 deletions deploy/test-dvo-writer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2021 Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.



# Bonfire deployment configuration
# Defines where to fetch the file that defines application configs

appsFile:
host: gitlab
repo: insights-platform/cicd-common
path: bonfire_configs/ephemeral_apps.yaml

apps:
- name: ccx-data-pipeline
components:
- name: dvo-writer
host: local
repo: .
path: deploy/dvo-writer.yaml
parameters:
ENV_NAME: env-ocm
IMAGE_TAG: latest

0 comments on commit 1484397

Please sign in to comment.