Skip to content

Commit

Permalink
Update resource requests in Helm Overrides and fine-tune HPA configur…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
sowm9802 committed Nov 15, 2024
1 parent 29e3f72 commit e0faf8b
Show file tree
Hide file tree
Showing 27 changed files with 133 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
name: Create and Publish a Heat Image
name: Create and Publish a Heat RXT Image

on:
push:
paths:
- '.github/workflows/release-heat.yml'
- '.github/workflows/release-heat-rxt.yml'
- 'Containerfiles/HeatRXT-Containerfile'
branches:
- development
Expand Down Expand Up @@ -65,8 +65,8 @@ jobs:
file: Containerfiles/HeatRXT-Containerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/heat:${{ github.event.inputs.imageTag || env.DEF_TAG_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/heat:${{ github.event.inputs.imageTag || env.DEF_TAG_NAME }}-${{ env.MY_DATE }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/heat-rxt:${{ github.event.inputs.imageTag || env.DEF_TAG_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/heat-rxt:${{ github.event.inputs.imageTag || env.DEF_TAG_NAME }}-${{ env.MY_DATE }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ github.event.inputs.imageTag || env.DEF_TAG_NAME }}
41 changes: 41 additions & 0 deletions .github/workflows/smoke-heat-rxt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#
name: Run build check for the Heat RXT image

on:
pull_request:
paths:
- Containerfiles/HeatRXT-Containerfile

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: Containerfiles/HeatRXT-Containerfile
push: false
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/heat-rxt:2024.1-ubuntu_jammy
build-args: |
VERSION=2024.1-ubuntu_jammy
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ pod:
cpu: "2000m"
notification:
requests:
memory: "128Mi"
memory: "256Mi"
cpu: "100m"
limits:
memory: "1024Mi"
Expand Down
2 changes: 1 addition & 1 deletion base-helm-configs/glance/glance-helm-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ pod:
enabled: false
api:
requests:
memory: "64Mi"
memory: "128Mi"
cpu: "100m"
limits:
memory: "4096Mi"
Expand Down
2 changes: 1 addition & 1 deletion base-helm-configs/heat/heat-helm-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ pod:
memory: "4096Mi"
engine:
requests:
memory: "64Mi"
memory: "128Mi"
cpu: "100m"
limits:
memory: "4096Mi"
Expand Down
2 changes: 1 addition & 1 deletion base-helm-configs/keystone/keystone-helm-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ pod:
enabled: false
api:
requests:
memory: "64Mi"
memory: "256Mi"
cpu: "100m"
limits:
memory: "4096Mi"
Expand Down
4 changes: 2 additions & 2 deletions base-helm-configs/neutron/neutron-helm-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ pod:
memory: "4096Mi"
ovn_metadata:
requests:
memory: "64Mi"
memory: "512Mi"
cpu: "100m"
limits:
memory: "4096Mi"
Expand Down Expand Up @@ -805,7 +805,7 @@ pod:
memory: "4096Mi"
server:
requests:
memory: "64Mi"
memory: "1024Mi"
cpu: "100m"
limits:
memory: "4096Mi"
Expand Down
12 changes: 6 additions & 6 deletions base-helm-configs/nova/nova-helm-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2353,8 +2353,8 @@ pod:
enabled: false
compute:
requests:
memory: "128Mi"
cpu: "100m"
memory: "512Mi"
cpu: "200m"
limits:
memory: "1024Mi"
cpu: "2000m"
Expand All @@ -2381,15 +2381,15 @@ pod:
cpu: "2000m"
conductor:
requests:
memory: "128Mi"
cpu: "100m"
memory: "256Mi"
cpu: "200m"
limits:
memory: "1024Mi"
cpu: "2000m"
scheduler:
requests:
memory: "128Mi"
cpu: "100m"
memory: "1024Mi"
cpu: "200m"
limits:
memory: "1024Mi"
cpu: "2000m"
Expand Down
4 changes: 2 additions & 2 deletions base-helm-configs/octavia/octavia-helm-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,13 @@ pod:
enabled: false
api:
requests:
memory: "64Mi"
memory: "128Mi"
cpu: "100m"
limits:
memory: "4096Mi"
worker:
requests:
memory: "64Mi"
memory: "128Mi"
cpu: "100m"
limits:
memory: "4096Mi"
Expand Down
2 changes: 1 addition & 1 deletion base-helm-configs/placement/placement-helm-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ pod:
enabled: false
api:
requests:
memory: "64Mi"
memory: "128Mi"
cpu: "100m"
limits:
memory: "4096Mi"
Expand Down
4 changes: 2 additions & 2 deletions base-helm-configs/postgresql/postgresql-helm-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ pod:
enabled: false
server:
requests:
memory: "2048Mi"
memory: "1024Mi"
cpu: "100m"
limits:
memory: "1024Mi"
memory: "2048Mi"
cpu: "2000m"
test:
requests:
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/barbican/base/hpa-barbican-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
2 changes: 1 addition & 1 deletion base-kustomize/cinder/base/hpa-cinder-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
- resource:
name: memory
target:
averageValue: 200Mi
averageValue: 500Mi
type: Value
type: Resource
scaleTargetRef:
Expand Down
2 changes: 1 addition & 1 deletion base-kustomize/cinder/base/hpa-cinder-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
name: memory
target:
type: AverageValue
averageValue: 200Mi
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/designate/base/hpa-designate-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/gnocchi/base/hpa-gnocchi-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/heat/base/hpa-heat-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/heat/base/hpa-heat-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/horizon/base/hpa-horizon-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/magnum/base/hpa-magnum-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
2 changes: 1 addition & 1 deletion base-kustomize/magnum/base/hpa-magnum-conductor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
name: memory
target:
type: AverageValue
averageValue: 600Mi
averageValue: 1Gi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
Expand Down
2 changes: 1 addition & 1 deletion base-kustomize/neutron/base/hpa-neutron-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
name: memory
target:
type: AverageValue
averageValue: 2048Mi
averageValue: 2Gi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/nova/base/hpa-nova-api-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/nova/base/hpa-nova-api-osapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
6 changes: 6 additions & 0 deletions base-kustomize/nova/base/hpa-nova-novncproxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ spec:
averageUtilization: 50
type: Utilization
type: Resource
- resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
Expand Down
2 changes: 1 addition & 1 deletion base-kustomize/nova/base/hpa-nova-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
name: memory
target:
type: AverageValue
averageValue: 1024Mi
averageValue: 1Gi
type: Resource
scaleTargetRef:
apiVersion: apps/v1
Expand Down

0 comments on commit e0faf8b

Please sign in to comment.