github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/packages/jackal-registry/jackal.yaml (about) 1 kind: JackalPackageConfig 2 metadata: 3 name: init-package-jackal-registry 4 5 variables: 6 - name: REGISTRY_EXISTING_PVC 7 description: "Optional: Use an existing PVC for the registry instead of creating a new one. If this is set, the REGISTRY_PVC_SIZE variable will be ignored." 8 default: "" 9 10 - name: REGISTRY_PVC_ENABLED 11 description: Toggle the creation and use of a PVC off/on 12 default: "true" 13 14 - name: REGISTRY_PVC_SIZE 15 description: The size of the persistent volume claim for the registry 16 default: 20Gi 17 18 - name: REGISTRY_PVC_ACCESS_MODE 19 description: The access mode of the persistent volume claim for the registry 20 default: ReadWriteOnce 21 22 - name: REGISTRY_CPU_REQ 23 description: The CPU request for the registry 24 default: 100m 25 26 - name: REGISTRY_MEM_REQ 27 description: The memory request for the registry 28 default: 256Mi 29 30 - name: REGISTRY_CPU_LIMIT 31 description: The CPU limit for the registry 32 default: "3" 33 34 - name: REGISTRY_MEM_LIMIT 35 description: The memory limit for the registry 36 default: "2Gi" 37 38 - name: REGISTRY_HPA_MIN 39 description: The minimum number of registry replicas 40 default: "1" 41 42 - name: REGISTRY_HPA_MAX 43 description: The maximum number of registry replicas 44 default: "5" 45 46 - name: REGISTRY_HPA_ENABLE 47 description: Enable the Horizontal Pod Autoscaler for the registry 48 default: "true" 49 50 - name: REGISTRY_CA_BUNDLE 51 description: Filepath to a bundle of trusted certificates to mount into the registry container 52 default: "" 53 autoIndent: true 54 type: file 55 56 - name: REGISTRY_EXTRA_ENVS 57 description: Array of additional environment variables passed to the registry container 58 default: "" 59 autoIndent: true 60 61 constants: 62 - name: REGISTRY_IMAGE 63 value: "###JACKAL_PKG_TMPL_REGISTRY_IMAGE###" 64 65 - name: REGISTRY_IMAGE_TAG 66 value: "###JACKAL_PKG_TMPL_REGISTRY_IMAGE_TAG###" 67 68 components: 69 - name: jackal-injector 70 description: | 71 Bootstraps a Kubernetes cluster by cloning a running pod in the cluster and hosting the registry image. 72 Removed and destroyed after the Jackal Registry is self-hosting the registry image. 73 required: true 74 only: 75 cluster: 76 architecture: amd64 77 files: 78 # Rust Injector Binary 79 - source: https://jackal-public.s3-us-gov-west-1.amazonaws.com/injector/###JACKAL_PKG_TMPL_INJECTOR_VERSION###/jackal-injector-amd64 80 target: "###JACKAL_TEMP###/jackal-injector" 81 shasum: "###JACKAL_PKG_TMPL_INJECTOR_AMD64_SHASUM###" 82 executable: true 83 84 - name: jackal-injector 85 description: | 86 Bootstraps a Kubernetes cluster by cloning a running pod in the cluster and hosting the registry image. 87 Removed and destroyed after the Jackal Registry is self-hosting the registry image. 88 required: true 89 only: 90 cluster: 91 architecture: arm64 92 files: 93 # Rust Injector Binary 94 - source: https://jackal-public.s3-us-gov-west-1.amazonaws.com/injector/###JACKAL_PKG_TMPL_INJECTOR_VERSION###/jackal-injector-arm64 95 target: "###JACKAL_TEMP###/jackal-injector" 96 shasum: "###JACKAL_PKG_TMPL_INJECTOR_ARM64_SHASUM###" 97 executable: true 98 99 - name: jackal-seed-registry 100 description: | 101 Deploys the Jackal Registry using the registry image provided by the Jackal Injector. 102 charts: 103 - name: docker-registry 104 releaseName: jackal-docker-registry 105 localPath: chart 106 version: 1.0.0 107 namespace: jackal 108 valuesFiles: 109 - registry-values.yaml 110 - registry-values-seed.yaml 111 images: 112 # The seed image (or images) that will be injected (see jackal-config.toml) 113 - "###JACKAL_PKG_TMPL_REGISTRY_IMAGE_DOMAIN######JACKAL_PKG_TMPL_REGISTRY_IMAGE###:###JACKAL_PKG_TMPL_REGISTRY_IMAGE_TAG###" 114 115 - name: jackal-registry 116 description: | 117 Updates the Jackal Registry to use the self-hosted registry image. 118 Serves as the primary docker registry for the cluster. 119 manifests: 120 - name: registry-connect 121 namespace: jackal 122 files: 123 - connect.yaml 124 - name: kep-1755-registry-annotation 125 namespace: jackal 126 files: 127 - configmap.yaml 128 charts: 129 - name: docker-registry 130 releaseName: jackal-docker-registry 131 localPath: chart 132 version: 1.0.0 133 namespace: jackal 134 valuesFiles: 135 - registry-values.yaml 136 images: 137 # This image (or images) must match that used for injection (see jackal-config.toml) 138 - "###JACKAL_PKG_TMPL_REGISTRY_IMAGE_DOMAIN######JACKAL_PKG_TMPL_REGISTRY_IMAGE###:###JACKAL_PKG_TMPL_REGISTRY_IMAGE_TAG###" 139 actions: 140 onDeploy: 141 after: 142 - wait: 143 cluster: 144 kind: deployment 145 namespace: jackal 146 name: app=docker-registry 147 condition: Available