add zap2xml
This commit is contained in:
10
zap2xml/bucket.yaml
Normal file
10
zap2xml/bucket.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: objectbucket.io/v1alpha1
|
||||||
|
kind: ObjectBucketClaim
|
||||||
|
metadata:
|
||||||
|
name: zap2xml-bucket
|
||||||
|
namespace: zap2xml
|
||||||
|
spec:
|
||||||
|
generateBucketName: zap2xml
|
||||||
|
storageClassName: weyma-s3-bucket
|
||||||
|
additionalConfig:
|
||||||
|
maxSize: "1Gi"
|
||||||
98
zap2xml/config.yaml
Normal file
98
zap2xml/config.yaml
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: zap2xml-s3config
|
||||||
|
data:
|
||||||
|
.s3cfg: |
|
||||||
|
[default]
|
||||||
|
access_key =
|
||||||
|
access_token =
|
||||||
|
add_encoding_exts =
|
||||||
|
add_headers =
|
||||||
|
bucket_location = US
|
||||||
|
ca_certs_file =
|
||||||
|
cache_file =
|
||||||
|
check_ssl_certificate = True
|
||||||
|
check_ssl_hostname = True
|
||||||
|
cloudfront_host = cloudfront.amazonaws.com
|
||||||
|
connection_max_age = 5
|
||||||
|
connection_pooling = True
|
||||||
|
content_disposition =
|
||||||
|
content_type =
|
||||||
|
default_mime_type = binary/octet-stream
|
||||||
|
delay_updates = False
|
||||||
|
delete_after = False
|
||||||
|
delete_after_fetch = False
|
||||||
|
delete_removed = False
|
||||||
|
dry_run = False
|
||||||
|
enable_multipart = True
|
||||||
|
encoding = UTF-8
|
||||||
|
encrypt = False
|
||||||
|
expiry_date =
|
||||||
|
expiry_days =
|
||||||
|
expiry_prefix =
|
||||||
|
follow_symlinks = False
|
||||||
|
force = False
|
||||||
|
get_continue = False
|
||||||
|
gpg_command = /usr/bin/gpg
|
||||||
|
gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
|
||||||
|
gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
|
||||||
|
gpg_passphrase =
|
||||||
|
guess_mime_type = True
|
||||||
|
host_base = https://weyma-s3.infra.dubyatp.xyz
|
||||||
|
host_bucket =
|
||||||
|
human_readable_sizes = False
|
||||||
|
invalidate_default_index_on_cf = False
|
||||||
|
invalidate_default_index_root_on_cf = True
|
||||||
|
invalidate_on_cf = False
|
||||||
|
keep_dirs = False
|
||||||
|
kms_key =
|
||||||
|
limit = -1
|
||||||
|
limitrate = 0
|
||||||
|
list_allow_unordered = False
|
||||||
|
list_md5 = False
|
||||||
|
log_target_prefix =
|
||||||
|
long_listing = False
|
||||||
|
max_delete = -1
|
||||||
|
max_retries = 5
|
||||||
|
mime_type =
|
||||||
|
multipart_chunk_size_mb = 15
|
||||||
|
multipart_copy_chunk_size_mb = 1024
|
||||||
|
multipart_max_chunks = 10000
|
||||||
|
preserve_attrs = True
|
||||||
|
progress_meter = True
|
||||||
|
proxy_host =
|
||||||
|
proxy_port = 0
|
||||||
|
public_url_use_https = False
|
||||||
|
put_continue = False
|
||||||
|
recursive = False
|
||||||
|
recv_chunk = 65536
|
||||||
|
reduced_redundancy = False
|
||||||
|
requester_pays = False
|
||||||
|
restore_days = 1
|
||||||
|
restore_priority = Standard
|
||||||
|
secret_key =
|
||||||
|
send_chunk = 65536
|
||||||
|
server_side_encryption = False
|
||||||
|
signature_v2 = False
|
||||||
|
signurl_use_https = False
|
||||||
|
simpledb_host = sdb.amazonaws.com
|
||||||
|
skip_destination_validation = False
|
||||||
|
skip_existing = False
|
||||||
|
socket_timeout = 300
|
||||||
|
ssl_client_cert_file =
|
||||||
|
ssl_client_key_file =
|
||||||
|
stats = False
|
||||||
|
stop_on_error = False
|
||||||
|
storage_class =
|
||||||
|
throttle_max = 100
|
||||||
|
upload_id =
|
||||||
|
urlencoding_mode = normal
|
||||||
|
use_http_expect = False
|
||||||
|
use_https = True
|
||||||
|
use_mime_magic = True
|
||||||
|
verbosity = WARNING
|
||||||
|
website_endpoint = http://%(bucket)s.s3-website-%(location)s.amazonaws.com/
|
||||||
|
website_error =
|
||||||
|
website_index = index.html
|
||||||
|
|
||||||
43
zap2xml/cron.yaml
Normal file
43
zap2xml/cron.yaml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: zap2xml-dtv-02191
|
||||||
|
spec:
|
||||||
|
schedule: "0 */12 * * *"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: zap2xml
|
||||||
|
image: git.dubyatp.xyz/williamp/kube-zap2xml:c075fec
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: zap2xml-bucket
|
||||||
|
env:
|
||||||
|
- name: LINEUP_ID
|
||||||
|
value: USA-DITV506-X
|
||||||
|
- name: POSTAL_CODE
|
||||||
|
value: "02191"
|
||||||
|
- name: TIMESPAN
|
||||||
|
value: "120"
|
||||||
|
- name: OUTPUT_FILE
|
||||||
|
value: /tmp/xmltv.xml
|
||||||
|
- name: PUBLIC_FILENAME
|
||||||
|
value: xmltv-directv-02191.xml
|
||||||
|
- name: S3_URL
|
||||||
|
value: s3://zap2xml-c134c9a7-a7a0-4113-997e-78e72ec3f576
|
||||||
|
volumeMounts:
|
||||||
|
- name: s3-config
|
||||||
|
mountPath: /root
|
||||||
|
- name: temp
|
||||||
|
mountPath: /tmp
|
||||||
|
restartPolicy: Never
|
||||||
|
volumes:
|
||||||
|
- name: s3-config
|
||||||
|
configMap:
|
||||||
|
name: zap2xml-s3config
|
||||||
|
- name: temp
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 1Gi
|
||||||
|
medium: Memory
|
||||||
Reference in New Issue
Block a user