Skip to content

Commit

Permalink
Merge pull request #53 from knikolla/example_pod
Browse files Browse the repository at this point in the history
Add example pod.yaml for one off running billing
  • Loading branch information
knikolla authored Apr 12, 2024
2 parents f77959d + 2e9dd71 commit 7dfbc65
Showing 1 changed file with 31 additions and 0 deletions.
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

0 comments on commit 7dfbc65

Please sign in to comment.