Skip to content

Commit

Permalink
[DOCU-3045] Remove MacOS installation docs (#5286)
Browse files Browse the repository at this point in the history
* remove all macos homebrew instructions and mentions; rewrite macos topics after 3.0 to link to Docker

* redirect and typo

* appease vale
  • Loading branch information
lena-larionova authored and StarlightIbuki committed Mar 28, 2023
1 parent 49f40ba commit ed0183e
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 517 deletions.
2 changes: 0 additions & 2 deletions app/_data/docs_nav_gateway_2.6.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
url: /install-and-run/amazon-linux
- text: CentOS
url: /install-and-run/centos
- text: macOS
url: /install-and-run/macos
- text: Debian
url: /install-and-run/debian
- text: RHEL
Expand Down
2 changes: 0 additions & 2 deletions app/_data/docs_nav_gateway_2.7.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
url: /install-and-run/amazon-linux
- text: CentOS
url: /install-and-run/centos
- text: macOS
url: /install-and-run/macos
- text: Debian
url: /install-and-run/debian
- text: RHEL
Expand Down
2 changes: 0 additions & 2 deletions app/_data/docs_nav_gateway_2.8.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
url: /install-and-run/amazon-linux
- text: CentOS
url: /install-and-run/centos
- text: macOS
url: /install-and-run/macos
- text: Debian
url: /install-and-run/debian
- text: RHEL
Expand Down
6 changes: 4 additions & 2 deletions app/_data/docs_nav_gateway_3.0.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ items:
url: /install/linux/rhel
- text: Ubuntu
url: /install/linux/ubuntu
- text: macOS
url: /install/macos
- text: Running Kong
items:
- text: Running Kong as a non-root user
Expand Down Expand Up @@ -601,3 +599,7 @@ items:
url: /reference/router-expressions-language
- text: FAQ
url: /reference/faq

unlisted:
- text: macOS
url: /install/macos
6 changes: 4 additions & 2 deletions app/_data/docs_nav_gateway_3.1.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ items:
url: /install/linux/rhel
- text: Ubuntu
url: /install/linux/ubuntu
- text: macOS
url: /install/macos
- text: Running Kong
items:
- text: Running Kong as a non-root user
Expand Down Expand Up @@ -614,3 +612,7 @@ items:
url: /reference/router-expressions-language
- text: FAQ
url: /reference/faq

unlisted:
- text: macOS
url: /install/macos
6 changes: 4 additions & 2 deletions app/_data/docs_nav_gateway_3.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ items:
url: /install/linux/rhel
- text: Ubuntu
url: /install/linux/ubuntu
- text: macOS
url: /install/macos
- text: Running Kong
items:
- text: Running Kong as a non-root user
Expand Down Expand Up @@ -631,3 +629,7 @@ items:
url: /reference/router-expressions-language
- text: FAQ
url: /reference/faq

unlisted:
- text: macOS
url: /install/macos
8 changes: 0 additions & 8 deletions app/_data/tables/install_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,3 @@ features:
url: /gateway/VERSION/install/docker/build-custom-images/
icon: /assets/images/icons/documentation/alpinelinux-icon.svg

- name: "Other"
items:
- name: "MacOS (Homebrew)"
url: /gateway/VERSION/install/macos/
oss: true
enterprise_text: N/A
support: false
icon: /assets/images/icons/documentation/macos-logo.png
18 changes: 2 additions & 16 deletions app/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -644,27 +644,13 @@


# GATEWAY INSTALLATION AND DEPLOYMENT
/enterprise/0.33-xinstallation/docker /gateway/latest/install-and-run/docker
/enterprise/0.35-x/deployment/installation/ /gateway/latest/install-and-run

/install/ https://konghq.com/install/
/install/aws/ /gateway/latest/install-and-run
/gateway/:version/install-and-run/macos/ /gateway/latest/install/macos/
/install/compile/ https://github.com/Kong/kong
/install/aws-cloudformation/ /gateway/latest/install-and-run
/install/aws-linux/ /gateway/latest/install-and-run/amazon-linux
/install/aws-marketplace/ /gateway/latest/install-and-run
/install/centos/ /gateway/latest/install-and-run/centos
/install/dcos/ https://github.com/Kong/kong-dist-dcos
/install/debian/ /gateway/latest/install-and-run/debian
/install/docker/ /gateway/latest/install-and-run/docker
/install/google-cloud/ /kubernetes-ingress-controller/latest/deployment/gke/
/install/kubernetes/ /gateway/latest/install-and-run/kubernetes
/install/macos/ /gateway/latest/install-and-run/macos
/install/osx/ /gateway/latest/install-and-run/macos
/install/redhat/ /gateway/latest/install-and-run/rhel
/install/source/ https://github.com/Kong/kong
/install/ubuntu/ /gateway/latest/install-and-run/ubuntu
/install/vagrant/ https://github.com/Kong/kong-vagrant
/install/* /gateway/latest/install/

/gateway-oss/2.6.x/kong-for-kubernetes/ /kubernetes-ingress-controller/
/gateway-oss/2.7.x/kong-for-kubernetes/ /kubernetes-ingress-controller/
Expand Down
108 changes: 6 additions & 102 deletions app/_src/gateway/install/macos.md
Original file line number Diff line number Diff line change
@@ -1,108 +1,12 @@
---
title: Install Kong Gateway on macOS
badge: oss
---

{{site.ce_product_name}} is licensed under an
[Apache 2.0 license](https://github.com/Kong/kong/blob/master/LICENSE).
{{site.base_gateway}} is currently not supported through Homebrew for MacOS.
We will be adding support for Homebrew installation in an upcoming release.

## Prerequisites
Check out these other installation options instead:
* For a simple, one-line installation method, try our [Docker quickstart](/gateway/{{page.kong_version}}/get-started/).
* For a custom solution still running on Docker, check out the [custom Docker installation guide](/gateway/{{page.kong_version}}/install/docker/).
* See all of our [supported installation options](/gateway/{{page.kong_version}}/install/).

You have [root-equivalent](/gateway/{{page.kong_version}}/production/running-kong/kong-user/) access.

## Download and install

Install {{site.base_gateway}}:

Use the [Homebrew](https://brew.sh/) package manager to add Kong as a tap and install it:

```bash
brew tap kong/kong
brew install kong
```

## Prepare your configs

Kong can run either with or without a database.

When using a database, you will use the `kong.conf` configuration file for setting Kong's
configuration properties at start-up and the database as storage of all configured entities,
such as the Routes and Services to which Kong proxies.

When not using a database, you will use `kong.conf`'s configuration properties and a `kong.yml`
file for specifying the entities as a declarative configuration.

### Using a database


{% include_cached /md/enterprise/cassandra-deprecation.md length='short' kong_version=page.kong_version %}

[Configure][configuration] Kong so it can connect to your database. Kong supports
[PostgreSQL {{site.data.kong_latest.dependencies.postgres}}](http://www.postgresql.org/) and
[Cassandra {{site.data.kong_latest.dependencies.cassandra}}](http://cassandra.apache.org/) as datastores, and
can also run in [DB-less mode](/gateway/{{ page.kong_version }}/production/deployment-topologies/db-less-and-declarative-config)

1. If you are using Postgres, provision a database and a user before starting Kong:

```sql
CREATE USER kong; CREATE DATABASE kong OWNER kong;
```

2. Run the Kong migrations:

```bash
kong migrations bootstrap [-c /path/to/kong.conf]
```

By default, Kong is configured to communicate with a local PostgreSQL instance.
If you are using Cassandra, or need to modify any settings, download the [`kong.conf.default`](https://raw.githubusercontent.com/Kong/kong/master/kong.conf.default) file and [adjust][configuration] it as necessary.

3. As root, add `kong.conf.default` to `/etc`:

```bash
sudo mkdir -p /etc/kong
sudo cp kong.conf.default /etc/kong/kong.conf
```

### Without a database

If you are going to run Kong in [DB-less mode](/gateway/latest/production/deployment-topologies/db-less-and-declarative-config/),
you should start by generating a declarative config file.

1. Generate a `kong.yml` file in your current folder using the following command:

``` bash
kong config init
```

The file contains instructions about how to populate it.

2. Edit your `kong.conf` file. Set the `database` option
to `off` and the `declarative_config` option to the path of your `kong.yml` file:

``` conf
database = off
declarative_config = /path/to/kong.yml
```

## Run {{site.base_gateway}}

1. Start {{site.base_gateway}}:

```bash
kong start [-c /path/to/kong.conf]
```

2. Verify that {{site.base_gateway}} is running:

```bash
curl -i http://localhost:8001/
```

## Next steps

Check out {{site.base_gateway}}'s series of
[Getting Started](/gateway/{{page.kong_version}}/get-started/services-and-routes) guides to get the most
out of {{site.base_gateway}}.
[configuration]: /gateway/{{page.kong_version}}/reference/configuration#database
18 changes: 9 additions & 9 deletions app/gateway-oss/2.1.x/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ is_homepage: true
<div class="docs-grid">
<div class="docs-grid-block">
<h3><a href="https://konghq.com/install/#kong-community">Installation</a></h3>
<p>You can install Kong Gateway on most Linux distributions and MacOS. We even provide the source so you can compile it yourself.</p>
<a href="https://konghq.com/install/#kong-community">Install Kong Gateway &rarr;</a>
<p>You can install {{site.base_gateway}} on most Linux distributions. We even provide the source so you can compile it yourself.</p>
<a href="https://konghq.com/install/#kong-community">Install {{site.base_gateway}} &rarr;</a>
</div>

<div class="docs-grid-block">
Expand All @@ -18,7 +18,7 @@ is_homepage: true

<div class="docs-grid-block">
<h3><a href="/{{page.kong_version}}/db-less-and-declarative-config">DB-less &amp; Declarative Configuration</a></h3>
<p>Learn how to leverage the declarative configuration format for using Kong Gateway without a database, using in-memory storage only.</p>
<p>Learn how to leverage the declarative configuration format for using {{site.base_gateway}} without a database, using in-memory storage only.</p>
<a href="/{{page.kong_version}}/db-less-and-declarative-config">Read the tutorial &rarr;</a>
</div>

Expand All @@ -30,19 +30,19 @@ is_homepage: true

<div class="docs-grid-block">
<h3><a href="/{{page.kong_version}}/upgrading">Upgrade Guide</a></h3>
<p>Already using Kong Gateway, and wanting to upgrade? Here's the step-by-step guide.</p>
<p>Already using {{site.base_gateway}}, and wanting to upgrade? Here's the step-by-step guide.</p>
<a href="/{{page.kong_version}}/upgrading">Read the upgrade guide &rarr;</a>
</div>

<div class="docs-grid-block">
<h3><a href="/{{page.kong_version}}/getting-started/quickstart">5-Minute Quickstart Guide</a></h3>
<p>Check out this guide if you just need the absolute basics: start Kong Gateway, add a Service, enable plugins, and add consumers.</p>
<a href="/{{page.kong_version}}/getting-started/quickstart">Start using Kong Gateway &rarr;</a>
<p>Check out this guide if you just need the absolute basics: start {{site.base_gateway}}, add a Service, enable plugins, and add consumers.</p>
<a href="/{{page.kong_version}}/getting-started/quickstart">Start using {{site.base_gateway}} &rarr;</a>
</div>

<div class="docs-grid-block">
<h3><a href="/{{page.kong_version}}/configuration">Configuration Reference</a></h3>
<p>Want to further optimize your Kong Gateway cluster, database, or configure NGINX? Dive into the configuration.</p>
<p>Want to further optimize your {{site.base_gateway}} cluster, database, or configure NGINX? Dive into the configuration.</p>
<a href="/{{page.kong_version}}/configuration">Start configuration &rarr;</a>
</div>

Expand Down Expand Up @@ -72,7 +72,7 @@ is_homepage: true

<div class="docs-grid-block">
<h3><a href="/{{page.kong_version}}/health-checks-circuit-breakers">Health Checks &amp; Circuit Breakers</a></h3>
<p>Let Kong Gateway monitor the availability of your services and adjust its load balancing accordingly.</p>
<p>Let {{site.base_gateway}} monitor the availability of your services and adjust its load balancing accordingly.</p>
<a href="/{{page.kong_version}}/health-checks-circuit-breakers">Learn about health checks and circuit breakers &rarr;</a>
</div>

Expand All @@ -84,7 +84,7 @@ is_homepage: true

<div class="docs-grid-block">
<h3><a href="/{{page.kong_version}}/plugin-development">Write Your Own Plugins</a></h3>
<p>Looking for something Kong Gateway does not do for you? Easy: write it as a plugin. Learn how to write your own plugins for Kong Gateway.</p>
<p>Looking for something {{site.base_gateway}} does not do for you? Easy: write it as a plugin. Learn how to write your own plugins for {{site.base_gateway}}.</p>
<a href="/{{page.kong_version}}/plugin-development">Read the plugin development guide &rarr;</a>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/gateway-oss/2.2.x/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ is_homepage: true
<div class="docs-grid">
<div class="docs-grid-block">
<h3><a href="https://konghq.com/install/#kong-community">Installation</a></h3>
<p>You can install {{site.ce_product_name}} on most Linux distributions and MacOS. We even provide the source so you can compile it yourself.</p>
<p>You can install {{site.ce_product_name}} on most Linux distributions. We even provide the source so you can compile it yourself.</p>
<a href="https://konghq.com/install/#kong-community">Install {{site.ce_product_name}} &rarr;</a>
</div>

Expand Down
9 changes: 1 addition & 8 deletions app/gateway/2.6.x/install-and-run/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ disable_image_expand: true
<br> <span class="badge oss" aria-label="open-source only"></span>
</div>
</a>

<a href="/gateway/{{page.kong_version}}/install-and-run/macos" class="docs-grid-install-block no-description">
<img class="install-icon" src="/assets/images/icons/documentation/macos-logo.png" alt="" />
<div class="install-text">MacOS
<br> <span class="badge oss" aria-label="open-source only"></span>
</div>
</a>
</div>

### Deployment options
Expand All @@ -80,5 +73,5 @@ at any time to gain access to Enterprise features.
> **Note**: For deployments on Kubernetes (including Helm and OpenShift),
you need to apply the license during installation.

See [Kong Gateway Licensing](/gateway/latest/plan-and-deploy/licenses/) for a feature comparison
See [{{site.base_gateway}} Licensing](/gateway/latest/plan-and-deploy/licenses/) for a feature comparison
between Free Mode and the Enterprise subscription, and more information about licenses.
Loading

0 comments on commit ed0183e

Please sign in to comment.