Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example pod.yaml for one off running billing #53

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions tools/pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: v1
kind: Pod
metadata:
name: invoicing-openstack-manual
namespace: invoicing-openstack
spec:
containers:
- name: invoicing-openstack-manual
image: ghcr.io/cci-moc/openstack-billing-from-db:latest
envFrom:
- secretRef:
name: invoicing-openstack-credentials
command: [ "sh", "-c" ]
args:
- |
python -m openstack_billing_db.main \
--start 2024-03-01 \
--end 2024-04-01 \
--invoice-month 2024-03 \
--include-stopped-runtime True \
--upload-to-s3 True \
--download-coldfront-data True \
--download-sql-dump-from-s3 True \
--convert-sql-dump-file-to-sqlite True \
--rate-cpu-su 0.013 \
--rate-gpu-a100sxm4-su 2.078 \
--rate-gpu-a100-su 1.803 \
--rate-gpu-v100-su 1.214 \
--rate-gpu-k80-su 0.463 \
--rate-gpu-a2-su 0.463
imagePullPolicy: Always
Loading