diff options
Diffstat (limited to 'doc/topics')
-rw-r--r-- | doc/topics/autodevops/customize.md | 6 | ||||
-rw-r--r-- | doc/topics/autodevops/index.md | 8 | ||||
-rw-r--r-- | doc/topics/autodevops/quick_start_guide.md | 9 | ||||
-rw-r--r-- | doc/topics/autodevops/stages.md | 4 | ||||
-rw-r--r-- | doc/topics/autodevops/upgrading_auto_deploy_dependencies.md | 4 | ||||
-rw-r--r-- | doc/topics/cron/index.md | 3 | ||||
-rw-r--r-- | doc/topics/git/tags.md | 2 | ||||
-rw-r--r-- | doc/topics/gitlab_flow.md | 2 | ||||
-rw-r--r-- | doc/topics/index.md | 9 | ||||
-rw-r--r-- | doc/topics/offline/quick_start_guide.md | 61 | ||||
-rw-r--r-- | doc/topics/release_your_application.md | 12 | ||||
-rw-r--r-- | doc/topics/use_gitlab.md | 2 |
12 files changed, 82 insertions, 40 deletions
diff --git a/doc/topics/autodevops/customize.md b/doc/topics/autodevops/customize.md index 089f9f8e7cc..503774ef6b5 100644 --- a/doc/topics/autodevops/customize.md +++ b/doc/topics/autodevops/customize.md @@ -26,7 +26,7 @@ used for the build. Specify either: -- The CI/CD variable `BUILDPACK_URL` according to [`pack`'s specifications](https://buildpacks.io/docs/app-developer-guide/specific-buildpacks/). +- The CI/CD variable `BUILDPACK_URL` according to [`pack`'s specifications](https://buildpacks.io/docs/app-developer-guide/specify-buildpacks/). - A [`project.toml` project descriptor](https://buildpacks.io/docs/app-developer-guide/using-project-descriptor/) with the buildpacks you would like to include. ### Custom buildpacks with Herokuish @@ -190,7 +190,7 @@ You can override the default values in the `values.yaml` file in the `HELM_UPGRADE_VALUES_FILE` [CI/CD variable](#cicd-variables) with the path and name. -Some values can not be overridden with the options above. Settings like `replicaCount` should instead be overridden with the `REPLICAS` +Some values can not be overridden with the options above. Settings like `replicaCount` should instead be overridden with the `REPLICAS` [build and deployment](#build-and-deployment) CI/CD variable. Follow [this issue](https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image/-/issues/31) for more information. NOTE: @@ -431,7 +431,7 @@ applications. | `HELM_UPGRADE_EXTRA_ARGS` | Allows extra options in `helm upgrade` commands when deploying the application. Note that using quotes doesn't prevent word splitting. | | `INCREMENTAL_ROLLOUT_MODE` | If present, can be used to enable an [incremental rollout](#incremental-rollout-to-production) of your application for the production environment. Set to `manual` for manual deployment jobs or `timed` for automatic rollout deployments with a 5 minute delay each one. | | `K8S_SECRET_*` | Any variable prefixed with [`K8S_SECRET_`](#application-secret-variables) is made available by Auto DevOps as environment variables to the deployed application. | -| `KUBE_CONTEXT` | From GitLab 14.5, can be used to select which context to use from `KUBECONFIG`. When `KUBE_CONTEXT` is blank, the default context in `KUBECONFIG` (if any) will be used. A context must be selected when using the [CI/CD tunnel](../../user/clusters/agent/ci_cd_tunnel.md). | +| `KUBE_CONTEXT` | From GitLab 14.5, can be used to select a context to use from `KUBECONFIG`. When `KUBE_CONTEXT` is blank, the default context in `KUBECONFIG` (if any) is used. A context must be selected when used [with the agent for Kubernetes](../../user/clusters/agent/ci_cd_tunnel.md). | | `KUBE_INGRESS_BASE_DOMAIN` | Can be used to set a domain per cluster. See [cluster domains](../../user/project/clusters/gitlab_managed_clusters.md#base-domain) for more information. | | `KUBE_NAMESPACE` | The namespace used for deployments. When using certificate-based clusters, [this value should not be overwritten directly](../../user/project/clusters/deploy_to_cluster.md#custom-namespace). | | `KUBECONFIG` | The kubeconfig to use for deployments. User-provided values take priority over GitLab-provided values. | diff --git a/doc/topics/autodevops/index.md b/doc/topics/autodevops/index.md index 585d484d3be..c8efc40a4cd 100644 --- a/doc/topics/autodevops/index.md +++ b/doc/topics/autodevops/index.md @@ -7,7 +7,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w # Auto DevOps **(FREE)** > - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/38366) in GitLab 11.0. -> - Support for the GitLab Agent was [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/299350) in GitLab 14.5. +> - Support for the GitLab agent was [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/299350) in GitLab 14.5. GitLab Auto DevOps is a collection of pre-configured features and integrations that work together to support your software delivery process. @@ -172,7 +172,7 @@ To disable it, follow the same process and clear the > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/52447) in GitLab 11.10. When you enable Auto DevOps at group level, the subgroups and projects in that -group inherit the configuration. This saves you time by batch-enabling it +group inherit the configuration. This saves you some time by batch-enabling it rather than enabling individually for each subgroup or project. When enabled for a group, you can still disable Auto DevOps @@ -207,7 +207,7 @@ instance become enabled. This is convenient when you want to run Auto DevOps by default for all projects. You can still disable Auto DevOps individually for the groups and projects where you don't want to run it. -Only GitLab administrators can enable or disable Auto DevOps in the instance +Only GitLab administrators can enable or disable Auto DevOps at the instance level. Even when disabled for an instance, group owners and project maintainers @@ -234,7 +234,7 @@ and clear the **Default to Auto DevOps pipeline** checkbox. ### Quick start -To guide your through the process of setting up Auto DevOps to deploy to a Kubernetes cluster on +To guide you through the process of setting up Auto DevOps to deploy to a Kubernetes cluster on Google Kubernetes Engine (GKE), see the [quick start guide](quick_start_guide.md). You can also follow the quick start for the general steps, but deploy to diff --git a/doc/topics/autodevops/quick_start_guide.md b/doc/topics/autodevops/quick_start_guide.md index 1fc2bd7c2c0..13d831aa00d 100644 --- a/doc/topics/autodevops/quick_start_guide.md +++ b/doc/topics/autodevops/quick_start_guide.md @@ -76,17 +76,18 @@ to deploy this project to. ![Project landing page](img/guide_project_landing_page_v12_10.png) -1. On the **Add a Kubernetes cluster integration** page, select the **Create new cluster** tab, - then select **Google GKE**. +1. On the **Kubernetes clusters** page, select the **Create a new cluster** option from the **Actions** dropdown menu. + +1. On the **Connect a Kubernetes cluster** page, select **Google GKE**. 1. Connect with your Google account, and select **Allow** to allow access to your Google account. (This authorization request is only displayed the first time you connect GitLab with your Google account.) - After authorizing access, the **Add a Kubernetes cluster integration** page + After authorizing access, the **Connect a Kubernetes cluster** page is displayed. -1. In the **Enter the details for your Kubernetes cluster** section, provide +1. In the **Enter your Kubernetes cluster certificate details** section, provide details about your cluster: - **Kubernetes cluster name** diff --git a/doc/topics/autodevops/stages.md b/doc/topics/autodevops/stages.md index 8b3966526ec..790b46b6310 100644 --- a/doc/topics/autodevops/stages.md +++ b/doc/topics/autodevops/stages.md @@ -112,7 +112,7 @@ Herokuish, with the following caveats: converted to a Cloud Native Buildpack using Heroku's [`cnb-shim`](https://github.com/heroku/cnb-shim). - `BUILDPACK_URL` must be in a format - [supported by `pack`](https://buildpacks.io/docs/app-developer-guide/specific-buildpacks/). + [supported by `pack`](https://buildpacks.io/docs/app-developer-guide/specify-buildpacks/). - The `/bin/herokuish` command is not present in the built image, and prefixing commands with `/bin/herokuish procfile exec` is no longer required (nor possible). Instead, custom commands should be prefixed with `/cnb/lifecycle/launcher` @@ -659,7 +659,7 @@ ciliumNetworkPolicy: #### Enabling Alerts You can also enable alerts. Network policies with alerts are considered only if -[Agent](../../user/clusters/agent/index.md) +the [agent](../../user/clusters/agent/index.md) has been integrated. You can enable alerts as follows: diff --git a/doc/topics/autodevops/upgrading_auto_deploy_dependencies.md b/doc/topics/autodevops/upgrading_auto_deploy_dependencies.md index 8c460247734..b0814ac5076 100644 --- a/doc/topics/autodevops/upgrading_auto_deploy_dependencies.md +++ b/doc/topics/autodevops/upgrading_auto_deploy_dependencies.md @@ -180,7 +180,7 @@ used the `v0.17.0` chart, add `AUTO_DEVOPS_FORCE_DEPLOY_V2`. ## Early adopters -If you want to use the latest beta or unstable version of `auto-deploy-image`, include +If you want to use the latest [Beta](../../policy/alpha-beta-support.md#beta-features) or unstable version of `auto-deploy-image`, include the latest Auto Deploy template into your `.gitlab-ci.yml`: ```yaml @@ -190,7 +190,7 @@ include: ``` WARNING: -Using a beta or unstable `auto-deploy-image` could cause unrecoverable damage to +Using a [Beta](../../policy/alpha-beta-support.md#beta-features) or unstable `auto-deploy-image` could cause unrecoverable damage to your environments. Do not test it with important projects or environments. The next stable template update is [planned for GitLab v14.0](https://gitlab.com/gitlab-org/gitlab/-/issues/232788). diff --git a/doc/topics/cron/index.md b/doc/topics/cron/index.md index affd746f66f..34a51d3d535 100644 --- a/doc/topics/cron/index.md +++ b/doc/topics/cron/index.md @@ -38,7 +38,10 @@ are valid: - Run once a day at midnight: `0 0 * * *` - Run once a week at midnight on Sunday morning: `0 0 * * 0` - Run once a month at midnight of the first day of the month: `0 0 1 * *` +- Run once a month on the 22nd: `0 0 22 * *`) +- Run once a month on the 2nd Monday: `0 0 * * 1#2` - Run once a year at midnight of 1 January: `0 0 1 1 *` +- Run every other Sunday at 0900 hours: `0 9 * * sun%2` For complete cron documentation, refer to the [crontab(5) — Linux manual page](https://man7.org/linux/man-pages/man5/crontab.5.html). diff --git a/doc/topics/git/tags.md b/doc/topics/git/tags.md index 6e0622273bb..8576bcd09ed 100644 --- a/doc/topics/git/tags.md +++ b/doc/topics/git/tags.md @@ -36,6 +36,6 @@ git tag git push origin --tags ``` -## Additional resources +## Related topics - [Tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging) Git reference page diff --git a/doc/topics/gitlab_flow.md b/doc/topics/gitlab_flow.md index 3bca33b32b7..d35eba0d782 100644 --- a/doc/topics/gitlab_flow.md +++ b/doc/topics/gitlab_flow.md @@ -190,7 +190,7 @@ By doing this, you minimize the length of time during which you have to apply bu After announcing a release branch, only add serious bug fixes to the branch. If possible, first merge these bug fixes into `main`, and then cherry-pick them into the release branch. If you start by merging into the release branch, you might forget to cherry-pick them into `main`, and then you'd encounter the same bug in subsequent releases. -Merging into `main` and then cherry-picking into release is called an "upstream first" policy, which is also practiced by [Google](https://www.chromium.org/chromium-os/chromiumos-design-docs/upstream-first) and [Red Hat](https://www.redhat.com/en/blog/a-community-for-using-openstack-with-red-hat-rdo). +Merging into `main` and then cherry-picking into release is called an "upstream first" policy, which is also practiced by [Google](https://www.chromium.org/chromium-os/chromiumos-design-docs/upstream-first/) and [Red Hat](https://www.redhat.com/en/blog/a-community-for-using-openstack-with-red-hat-rdo). Every time you include a bug fix in a release branch, increase the patch version (to comply with [Semantic Versioning](https://semver.org/)) by setting a new tag. Some projects also have a stable branch that points to the same commit as the latest released branch. In this flow, it is not common to have a production branch (or Git flow `main` branch). diff --git a/doc/topics/index.md b/doc/topics/index.md deleted file mode 100644 index 6d2c839430b..00000000000 --- a/doc/topics/index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -redirect_to: '../index.md' -remove_date: '2022-02-03' ---- - -This document was moved to [another location](../index.md). - -<!-- This redirect file can be deleted after <2022-02-03>. --> -<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/#move-or-rename-a-page --> diff --git a/doc/topics/offline/quick_start_guide.md b/doc/topics/offline/quick_start_guide.md index 09fae2b1fd5..d1be775268f 100644 --- a/doc/topics/offline/quick_start_guide.md +++ b/doc/topics/offline/quick_start_guide.md @@ -12,12 +12,49 @@ instance entirely offline. ## Installation NOTE: -This guide assumes the server is Ubuntu 18.04. Instructions for other servers may vary. -This guide also assumes the server host resolves as `my-host`, which you should replace with your -server's name. +This guide assumes the server is Ubuntu 20.04 using the [Omnibus installation method](https://docs.gitlab.com/omnibus/) and will be running GitLab [Enterprise Edition](https://about.gitlab.com/install/ce-or-ee/). Instructions for other servers may vary. +This guide also assumes the server host resolves as `my-host.internal`, which you should replace with your +server's FQDN, and that you have access to a different server with Internet access to download the required package files. -Follow the installation instructions [as outlined in the omnibus install -guide](https://about.gitlab.com/install/#ubuntu), but make sure to specify an `http` +<i class="fa fa-youtube-play youtube" aria-hidden="true"></i> +For a video walkthrough of this process, see [Offline GitLab Installation: Downloading & Installing](https://www.youtube.com/watch?v=TJaq4ua2Prw). + +### Download the GitLab package + +You should [manually download the GitLab package](../../update/package/index.md#upgrade-using-a-manually-downloaded-package) and relevant dependencies using a server of the same operating system type that has access to the Internet. + +If your offline environment has no local network access, you must manually transport across the relevant package files through physical media, such as a USB drive or writable DVD. + +In Ubuntu, this can be performed on a server with Internet access using the following commands: + +```shell +# Download the bash script to prepare the repository +curl --silent "https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh" | sudo bash + +# Download the gitlab-ee package and dependencies to /var/cache/apt/archives +sudo apt-get install --download-only gitlab-ee + +# Copy the contents of the apt download folder to a mounted media device +sudo cp /var/cache/apt/archives/*.deb /path/to/mount +``` + +### Install the GitLab package + +Prerequisites: + +- Before installing the GitLab package on your offline environment, ensure that you have installed all required dependencies first. + +If you are using Ubuntu, you can install the dependency `.deb` packages you copied across with `dpkg`. Do not install the GitLab package yet. + +```shell +# Navigate to the physical media device +sudo cd /path/to/mount + +# Install the dependency packages +sudo dpkg -i <package_name>.deb +``` + +[Use the relevant commands for your operating system to install the package](../../update/package/index.md#upgrade-using-a-manually-downloaded-package) but make sure to specify an `http` URL for the `EXTERNAL_URL` installation step. Once installed, we can manually configure the SSL ourselves. @@ -25,8 +62,10 @@ It is strongly recommended to setup a domain for IP resolution rather than bind to the server's IP address. This better ensures a stable target for our certs' CN and makes long-term resolution simpler. +The following example for Ubuntu specifies the `EXTERNAL_URL` using HTTP and installs the GitLab package: + ```shell -sudo EXTERNAL_URL="http://my-host.internal" apt-get install gitlab-ee +sudo EXTERNAL_URL="http://my-host.internal" dpkg -i <gitlab_package_name>.deb ``` ## Enabling SSL @@ -38,7 +77,7 @@ Follow these steps to enable SSL for your fresh instance. Note that these steps ```ruby # Update external_url from "http" to "https" - external_url "https://gitlab.example.com" + external_url "https://my-host.internal" # Set Let's Encrypt to false letsencrypt['enable'] = false @@ -159,3 +198,11 @@ If all goes well, this is what you should see: Running hooks in /etc/ca-certificates/update.d... done. ``` + +### Disable Version Check and Service Ping + +The Version Check and Service Ping services improve the GitLab user experience and ensure that +users are on the most up-to-date instances of GitLab. These two services can be turned off for air-gapped +environments so that they do not attempt and fail to reach out to GitLab services. + +Learn more about [disabling usage statistics](../../user/admin_area/settings/usage_statistics.md#enable-or-disable-usage-statistics). diff --git a/doc/topics/release_your_application.md b/doc/topics/release_your_application.md index 64decba33ad..7ed227adcac 100644 --- a/doc/topics/release_your_application.md +++ b/doc/topics/release_your_application.md @@ -26,18 +26,18 @@ deployment using GitLab CI/CD. ### Deploy applications to Kubernetes clusters With the extensive integration between GitLab and Kubernetes, you can safely deploy your applications -to Kubernetes clusters using the [GitLab Agent](../user/clusters/agent/install/index.md). +to Kubernetes clusters using the [GitLab agent](../user/clusters/agent/install/index.md). #### GitOps deployments **(PREMIUM)** -With the [GitLab Agent](../user/clusters/agent/install/index.md), you can perform [pull-based -deployments of Kubernetes manifests](../user/clusters/agent/repository.md#synchronize-manifest-projects). This provides a scalable, secure, and cloud-native +With the [GitLab agent for Kubernetes](../user/clusters/agent/install/index.md), you can perform [pull-based +deployments of Kubernetes manifests](../user/clusters/agent/gitops.md). This provides a scalable, secure, and cloud-native approach to manage Kubernetes deployments. -#### Deploy to Kubernetes with the CI/CD Tunnel +#### Deploy to Kubernetes from GitLab CI/CD -With the [GitLab Agent](../user/clusters/agent/install/index.md), you can perform push-based -deployments with the [CI/CD Tunnel](../user/clusters/agent/ci_cd_tunnel.md). It provides +With the [GitLab agent for Kubernetes](../user/clusters/agent/install/index.md), you can perform [push-based +deployments](../user/clusters/agent/ci_cd_tunnel.md) from GitLab CI/CD. The agent provides a secure and reliable connection between GitLab and your Kubernetes cluster. ### Deploy to AWS with GitLab CI/CD diff --git a/doc/topics/use_gitlab.md b/doc/topics/use_gitlab.md index a7189284fe6..59a933b1441 100644 --- a/doc/topics/use_gitlab.md +++ b/doc/topics/use_gitlab.md @@ -14,7 +14,7 @@ organize your work, create and secure your application, and analyze its performa - [Plan and track work](plan_and_track.md) - [Build your application](build_your_application.md) - [Secure your application](../user/application_security/index.md) -- [Release your application](release_your_application.md) +- [Deploy and release your application](release_your_application.md) - [Monitor application performance](../operations/index.md) - [Monitor runner performance](https://docs.gitlab.com/runner/monitoring/index.html) - [Manage your infrastructure](../user/infrastructure/index.md) |