diff --git a/scripts/pulp-operator-repo.yaml b/scripts/pulp-operator-repo.yaml new file mode 100644 index 0000000..23494bc --- /dev/null +++ b/scripts/pulp-operator-repo.yaml @@ -0,0 +1,48 @@ +--- +apiVersion: v1 +kind: Secret +metadata: + name: 'example-pulp-admin-password' +stringData: + password: 'xxxxxxxx' +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: settings +data: + analytics: "False" + token_server: '"https://artifact.onwalk.net/pulp/api/v3/token/"' + content_origin: '"https://artifact.onwalk.net"' + ansible_api_hostname: '"https://artifact.onwalk.net"' + pypi_api_hostname: '"https://artifact.onwalk.net"' + api_root: '"/pulp/"' + allowed_export_paths: '[ "/tmp" ]' + allowed_import_paths: '[ "/tmp" ]' + +--- +apiVersion: repo-manager.pulpproject.org/v1 +kind: Pulp +metadata: + name: example-pulp +spec: + custom_pulp_settings: settings + admin_password_secret: "example-pulp-admin-password" + api: + replicas: 1 + content: + replicas: 1 + worker: + replicas: 1 + web: + replicas: 1 + database: + postgres_storage_class: local-path + file_storage_access_mode: "ReadWriteMany" + file_storage_size: "2Gi" + file_storage_storage_class: local-path + cache: + enabled: true + redis_storage_class: local-path + ingress_type: none + diff --git a/scripts/pulp-operator.sh b/scripts/pulp-operator.sh new file mode 100644 index 0000000..52669bd --- /dev/null +++ b/scripts/pulp-operator.sh @@ -0,0 +1,5 @@ +helm repo add pulp-operator https://github.com/pulp/pulp-k8s-resources/raw/main/helm-charts/ --force-update +helm repo up +kubectl create ns pulp +kubectl config set-context --current --namespace pulp +helm -n pulp upgrade --install pulp pulp-operator/pulp-operator