github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/docs/2-the-jackal-cli/100-cli-commands/jackal_init.md (about)

     1  # jackal init
     2  <!-- Auto-generated by hack/gen-cli-docs.sh -->
     3  
     4  Prepares a k8s cluster for the deployment of Jackal packages
     5  
     6  ## Synopsis
     7  
     8  Injects a docker registry as well as other optional useful things (such as a git server and a logging stack) into a k8s cluster under the 'jackal' namespace to support future application deployments.
     9  If you do not have a k8s cluster already configured, this command will give you the ability to install a cluster locally.
    10  
    11  This command looks for a jackal-init package in the local directory that the command was executed from. If no package is found in the local directory and the Jackal CLI exists somewhere outside of the current directory, Jackal will failover and attempt to find a jackal-init package in the directory that the Jackal binary is located in.
    12  
    13  
    14  
    15  
    16  
    17  ```
    18  jackal init [flags]
    19  ```
    20  
    21  ## Examples
    22  
    23  ```
    24  
    25  # Initializing without any optional components:
    26  $ jackal init
    27  
    28  # Initializing w/ Jackals internal git server:
    29  $ jackal init --components=git-server
    30  
    31  # Initializing w/ Jackals internal git server and PLG stack:
    32  $ jackal init --components=git-server,logging
    33  
    34  # Initializing w/ an internal registry but with a different nodeport:
    35  $ jackal init --nodeport=30333
    36  
    37  # Initializing w/ an external registry:
    38  $ jackal init --registry-push-password={PASSWORD} --registry-push-username={USERNAME} --registry-url={URL}
    39  
    40  # Initializing w/ an external git server:
    41  $ jackal init --git-push-password={PASSWORD} --git-push-username={USERNAME} --git-url={URL}
    42  
    43  # Initializing w/ an external artifact server:
    44  $ jackal init --artifact-push-password={PASSWORD} --artifact-push-username={USERNAME} --artifact-url={URL}
    45  
    46  # NOTE: Not specifying a pull username/password will use the push user for pulling as well.
    47  
    48  ```
    49  
    50  ## Options
    51  
    52  ```
    53        --adopt-existing-resources        Adopts any pre-existing K8s resources into the Helm charts managed by Jackal. ONLY use when you have existing deployments you want Jackal to takeover.
    54        --artifact-push-token string      [alpha] API Token for the push-user to access the artifact registry
    55        --artifact-push-username string   [alpha] Username to access to the artifact registry Jackal is configured to use. User must be able to upload package artifacts.
    56        --artifact-url string             [alpha] External artifact registry url to use for this Jackal cluster
    57        --components string               Specify which optional components to install.  E.g. --components=git-server,logging
    58        --confirm                         Confirms package deployment without prompting. ONLY use with packages you trust. Skips prompts to review SBOM, configure variables, select optional components and review potential breaking changes.
    59        --git-pull-password string        Password for the pull-only user to access the git server
    60        --git-pull-username string        Username for pull-only access to the git server
    61        --git-push-password string        Password for the push-user to access the git server
    62        --git-push-username string        Username to access to the git server Jackal is configured to use. User must be able to create repositories via 'git push' (default "jackal-git-user")
    63        --git-url string                  External git server url to use for this Jackal cluster
    64    -h, --help                            help for init
    65    -k, --key string                      Path to public key file for validating signed packages
    66        --nodeport int                    Nodeport to access a registry internal to the k8s cluster. Between [30000-32767]
    67        --registry-pull-password string   Password for the pull-only user to access the registry
    68        --registry-pull-username string   Username for pull-only access to the registry
    69        --registry-push-password string   Password for the push-user to connect to the registry
    70        --registry-push-username string   Username to access to the registry Jackal is configured to use (default "jackal-push")
    71        --registry-secret string          Registry secret value
    72        --registry-url string             External registry url address to use for this Jackal cluster
    73        --retries int                     Number of retries to perform for Jackal deploy operations like git/image pushes or Helm installs (default 3)
    74        --set stringToString              Specify deployment variables to set on the command line (KEY=value) (default [])
    75        --skip-webhooks                   [alpha] Skip waiting for external webhooks to execute as each package component is deployed
    76        --storage-class string            Specify the storage class to use for the registry and git server.  E.g. --storage-class=standard
    77        --timeout duration                Timeout for Helm operations such as installs and rollbacks (default 15m0s)
    78  ```
    79  
    80  ## Options inherited from parent commands
    81  
    82  ```
    83    -a, --architecture string   Architecture for OCI images and Jackal packages
    84        --insecure              Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
    85    -l, --log-level string      Log level when running Jackal. Valid options are: warn, info, debug, trace (default "info")
    86        --no-color              Disable colors in output
    87        --no-log-file           Disable log file creation
    88        --no-progress           Disable fancy UI progress bars, spinners, logos, etc
    89        --tmpdir string         Specify the temporary directory to use for intermediate files
    90        --jackal-cache string     Specify the location of the Jackal cache directory (default "~/.jackal-cache")
    91  ```
    92  
    93  ## SEE ALSO
    94  
    95  * [jackal](jackal.md)	 - DevSecOps for Airgap