1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
Commit Graph

83 Commits

Author SHA1 Message Date
Yunfei Jiang
3b4c91caa4 OCPSTRAT-2506 Test and validate AWS m7 instance types for OpenShift Container Platform 2026-01-22 17:07:19 +08:00
John Hixson
d93d030520 AWS: Add the ability to configure throughput on GP3 volumes
GP3 volumes have the ability to configure throughput from 125 MiB/s to
2000 MiB/s. This allows the ability to set this at install time in the
install-config.

https://issues.redhat.com/browse/CORS-4212
2025-12-01 17:14:07 -08:00
Jianlin Liu
33578b2ebe Revert "Merge pull request #9945 from jhixson74/main_aws_gp3_throughput"
This reverts commit e81ba7f50f, reversing
changes made to 5060ac90b9.
2025-11-26 04:46:32 -05:00
John Hixson
fdde8b0ece AWS: Add the ability to configure throughput on GP3 volumes
GP3 volumes have the ability to configure throughput from 125 MiB/s to
2000 MiB/s. This allows the ability to set this at install time in the
install-config.

https://issues.redhat.com/browse/CORS-4212
2025-11-21 10:15:54 -08:00
lwan
f3d6d5575e Add AWS c7g,m7g,r8g to tested instance types 2024-09-12 08:25:26 +08:00
Rafael Fonseca
85a3545ebc CORS-3608: aws: deprecate platform.aws.amiID field
This field was introduced [1] before the Installer had support for
custom AMIs in machine pools [2]. Now that it does, the same
functionality is achieved via the defaultMachinePlatform field
`platform.aws.defaultMachinePlatform.amiID`

[1] fdf94e39ee
[2] bc47222576
2024-07-19 21:42:16 +02:00
Marco Braga
e0a520b89e aws/publicIpv4Pool/doc: basic user docs
User documentation for the Public IPv4 Pool feature (BYOIPv4)
on install-config, where the customer can specify the Public IPv4 Pool
ID from a Public IPv4 CIDR pool that had bought to the AWS account.
2024-02-21 15:10:45 -03:00
Yunfei Jiang
c612d7968e Add AWS m6a to tested instance types 2023-12-18 19:17:29 +08:00
Marco Braga
e8fc7c48ff doc/aws/edge: unified guide for edge zones with Wavelength
Introduce installer docs (reference for the product docs) to provision
VPC and dependencies (Carrier Gateway and subnets) using CloudFormation
templates, when installing the variant of BYO VPC.
2023-11-30 10:38:20 -03:00
Marco Braga
445ad4a1bc doc/aws/edge: unified guide for edge zones with Wavelength 2023-11-22 18:58:11 -03:00
Marco Braga
c71dfd8a42 aws doc: add user documentation for Local Zone deployments
Inserting the instructions to install a cluster expanding
nodes in Local Zones (new VPC), into existing documentation
of installing in existing VPC.

The Day-2 section is also added for reference of existing Local
Zone automation. The Day 2 is not part of the official documentation
delivered on 4.14, but it is mapped as an open question in the
enhancement proposal [1232](https://github.com/openshift/enhancements/pull/1232).
The steps described on the KCS was validated with QE and SDN teams.
2023-07-20 10:21:59 -03:00
Marco Braga
7360f110d8 doc/fix: replace jq to aws --query 2023-03-20 10:35:36 -03:00
Marco Braga
38b22e7f2b RFE-2782/phase-1: Documentation - edge pool for AWS Local Zones
Add Documentation for Phase-1[1] of installing OCP cluster in existing VPC
with Local Zone Subnets. The documentation includes CloudFormation Templates
to create Local Zone public subnet and route table association.

[1] Enhancement Proposal: https://github.com/openshift/enhancements/pull/1232
2023-03-01 00:12:19 -03:00
Alessandro Di Stefano
dba21fcbc7 Fixes tested_instance_types_aarch64.md 2022-10-04 09:13:18 +02:00
OpenShift Merge Robot
0a17492fda Merge pull request #6076 from r4f4/aws-ipi-airgap
Bug 2094716: docs: fully air-gapped AWS IPI install
2022-09-23 02:00:39 +02:00
OpenShift Merge Robot
5c900d50dc Merge pull request #6346 from patrickdillon/aws-upi-rm-cp-ms
AWS UPI docs: remove control plane machineset
2022-09-17 00:50:57 +02:00
patrickdillon
6d28403fd4 AWS UPI docs: remove control plane machineset
64665ebccf added a control plane
machineset manifest. This updates corresponding UPI docs to remove
this manifest when the cluster is runnning without MAO.
2022-09-14 12:03:48 -04:00
Yunfei Jiang
4c3ad56270 Add AWS r6i into tested instance types table 2022-09-13 09:40:10 +08:00
Rafael Fonseca
f67c283cb0 Bug 2094716: docs: fully air-gapped AWS IPI install
Fully air-gapped installation is not possible.
2022-07-04 16:04:38 +02:00
Dan Winship
68f22f89ed Print the "export KUBECONFIG=..." command on its own line for easier cut-and-paste 2022-06-16 10:54:28 -04:00
Rafael Fonseca
ea9cf162b1 Bug 2068180: update doc for DNS and disconnected clusters
For disconnected clusters, OpenShift can be configured not to manage
DNS, and the cluster administrator can configure DNS manually.
Otherwise, the Ingress operator will try to contact sts directly
"sts.amazonaws.com" as opposed to the configured VPC endpoint for the
cluster.
2022-06-07 19:52:02 +02:00
Cody Hoag
e7ccede4ab Tested instance type lists for AWS/Azure/GCP 2022-01-31 14:41:58 -05:00
Mikel Olasagasti Uranga
c0ff5a9434 Update URL from cloud.redhat.com to console.redhat.com
The console applications currently in cloud.redhat.com have been moved to
to a new URL at console.redhat.com.

https://cloud.redhat.com/blog/check-out-our-new-look

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
2021-12-01 23:09:56 +01:00
Vladimir Belousov
51a40345a7 docs: correct spelling in docs
Correct spelling to improve the readability of the documentation
2021-11-01 09:54:42 +03:00
Juan Hernandez
6f714a1f9a docs/user/aws/install: Update cloud install links
This patch updates the "cloud-install" links in the documentation to
point to the current location.

Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com>
2021-05-14 12:24:41 +02:00
Colin Walters
b64d699a13 Add stream metadata for RHCOS
This implements part of the plan from:
https://github.com/openshift/os/issues/477

When we originally added the pinned RHCOS metadata `rhcos.json`
to the installer, we also changed the coreos-assembler `meta.json`
format into an arbitrary new format in the name of some cleanups.
In retrospect, this was a big mistake because we now have two
formats.

Then Fedora CoreOS appeared and added streams JSON as a public API.

We decided to unify on streams metadata; there's now a published
Go library for it: https://github.com/coreos/stream-metadata-go

Among other benefits, it is a single file that supports multiple
architectures.

UPI installs should now use stream metadata, particularly
to find public cloud images.  This is exposed via a new
`openshift-install coreos print-stream-json` command.

This is an important preparatory step for exposing this via
`oc` as well as having something in the cluster update to
it.

HOWEVER as a (really hopefully temporary) hack, we *duplicate*
the metadata so that IPI installs use the new stream format,
and UPI CI jobs can still use the old format (with different RHCOS versions).

We will port the UPI docs and CI jobs after this merges.

Co-authored-by: Matthew Staebler <staebler@redhat.com>
2021-03-24 18:21:26 +00:00
W. Trevor King
d6fa2ef48c docs/user/aws/customization: Fix KMS-key link format
Fix a disconnect about the slug to use for the reference link from
17030b3bdb (aws: allow users to set the KMS key id for encrypting EBS
volumes, 2020-03-13, #3293).
2021-03-16 16:48:18 -07:00
Marco Tulio R Braga
db0f5380c2 docs/aws-iam: improving the concepts for Account root user and IAM user 2021-01-15 00:34:04 -03:00
Marco Tulio R Braga
1dec19ec22 docs/aws-iam: typo on reference to create ocp user 2021-01-15 00:05:20 -03:00
Russell Teague
51f66d63cf Default AWS instance type to 'm5' 2020-07-08 10:25:19 -04:00
patrickdillon
79bd68d3bc docs/user/aws: update docs to include BYO subnets example
Provide brief explanation of BYO VPC subnets and give example install-config.
2020-04-13 15:33:24 -04:00
Abhinav Dahiya
bc47222576 aws: allow users to provide AMI for each machine pool
users can set AMI for the platform or defaultMachinePool or individual machine pool, and the AMI used is based on increasing order of priority of the list mentioned before.
2020-03-17 16:37:09 -07:00
Abhinav Dahiya
17030b3bdb aws: allow users to set the KMS key id for encrypting EBS volumes
Users can provide the KMS Key ARN which should be used to encrypt the EBS volumes otherwise the default KMS key for the region will be used.
2020-03-16 14:04:52 -07:00
Paul Tiedtke
73026e5657 aws: add new vCPU limit to docs
AWS recently changed the instance limit to a vCPU limit

Fixes #2736
2019-12-19 11:54:52 +01:00
OpenShift Merge Robot
5e0bb6753f Merge pull request #2783 from cuppett/master
Adding optional AMI encryption step to the AWS UPI docs
2019-12-13 18:30:11 +01:00
Stephen Cuppett
abc93d3087 Adding optional AMI encryption step to the AWS UPI docs 2019-12-10 13:06:20 -05:00
Abhinav Dahiya
73eeef70fb *: add OWNERS for all platform specific directories
`<platform>-approvers` and `<platform>-reviewers` alias from `OWNER_ALIASES` should be used to maintain membership.
2019-12-10 09:55:42 -08:00
W. Trevor King
99f9959c12 docs/user/aws/customization: Document platform subnets
Catching up with 32356ddc99 (pkg/types/aws/platform: Add Subnets
property, 2019-10-07, #2477).
2019-10-18 05:17:31 -07:00
Joe Doss
2e6472bd6c docs/user/aws/install_upi: Fix "machinesets" -> "machineset" typo
Creating manifests:

```
$ openshift-install create manifests
WARNING There are no compute nodes specified. The cluster will not fully initialize without compute nodes.
INFO Consuming "Install Config" from target directory
```

Produces the following yaml files:

```
$ ls -lah openshift/
total 68K
drwxr-xr-x. 2 jdoss jdoss 4.0K Oct 10 14:39 .
drwxrwxr-x. 4 jdoss jdoss 4.0K Oct 10 14:39 ..
-rw-r--r--. 1 jdoss jdoss  293 Oct 10 14:39 99_binding-discovery.yaml
-rw-r--r--. 1 jdoss jdoss  219 Oct 10 14:39 99_cloud-creds-secret.yaml
-rw-r--r--. 1 jdoss jdoss  181 Oct 10 14:39 99_kubeadmin-password-secret.yaml
-rw-r--r--. 1 jdoss jdoss 1.5K Oct 10 14:39 99_openshift-cluster-api_master-machines-0.yaml
-rw-r--r--. 1 jdoss jdoss 1.5K Oct 10 14:39 99_openshift-cluster-api_master-machines-1.yaml
-rw-r--r--. 1 jdoss jdoss 1.5K Oct 10 14:39 99_openshift-cluster-api_master-machines-2.yaml
-rw-r--r--. 1 jdoss jdoss 2.7K Oct 10 14:39 99_openshift-cluster-api_master-user-data-secret.yaml
-rw-r--r--. 1 jdoss jdoss 2.1K Oct 10 14:39 99_openshift-cluster-api_worker-machineset-0.yaml
-rw-r--r--. 1 jdoss jdoss 2.1K Oct 10 14:39 99_openshift-cluster-api_worker-machineset-1.yaml
-rw-r--r--. 1 jdoss jdoss 2.1K Oct 10 14:39 99_openshift-cluster-api_worker-machineset-2.yaml
-rw-r--r--. 1 jdoss jdoss 2.1K Oct 10 14:39 99_openshift-cluster-api_worker-machineset-3.yaml
-rw-r--r--. 1 jdoss jdoss 2.7K Oct 10 14:39 99_openshift-cluster-api_worker-user-data-secret.yaml
-rw-r--r--. 1 jdoss jdoss 1.2K Oct 10 14:39 99_openshift-machineconfig_master.yaml
-rw-r--r--. 1 jdoss jdoss 1.2K Oct 10 14:39 99_openshift-machineconfig_worker.yaml
-rw-r--r--. 1 jdoss jdoss  222 Oct 10 14:39 99_role-cloud-creds-secret-reader.yaml
```

Following the documentation it says to remove the following things:

`$ rm -f openshift/99_openshift-cluster-api_master-machines-*.yaml openshift/99_openshift-cluster-api_worker-machinesets-*.yaml`

Doing so left the `openshift/99_openshift-cluster-api_worker-machineset-*.yaml` files:

```
$ ls -lah openshift/
total 56K
drwxr-xr-x. 2 jdoss jdoss 4.0K Oct 10 14:44 .
drwxrwxr-x. 4 jdoss jdoss 4.0K Oct 10 14:39 ..
-rw-r--r--. 1 jdoss jdoss  293 Oct 10 14:39 99_binding-discovery.yaml
-rw-r--r--. 1 jdoss jdoss  219 Oct 10 14:39 99_cloud-creds-secret.yaml
-rw-r--r--. 1 jdoss jdoss  181 Oct 10 14:39 99_kubeadmin-password-secret.yaml
-rw-r--r--. 1 jdoss jdoss 2.7K Oct 10 14:39 99_openshift-cluster-api_master-user-data-secret.yaml
-rw-r--r--. 1 jdoss jdoss 2.1K Oct 10 14:39 99_openshift-cluster-api_worker-machineset-0.yaml
-rw-r--r--. 1 jdoss jdoss 2.1K Oct 10 14:39 99_openshift-cluster-api_worker-machineset-1.yaml
-rw-r--r--. 1 jdoss jdoss 2.1K Oct 10 14:39 99_openshift-cluster-api_worker-machineset-2.yaml
-rw-r--r--. 1 jdoss jdoss 2.1K Oct 10 14:39 99_openshift-cluster-api_worker-machineset-3.yaml
-rw-r--r--. 1 jdoss jdoss 2.7K Oct 10 14:39 99_openshift-cluster-api_worker-user-data-secret.yaml
-rw-r--r--. 1 jdoss jdoss 1.2K Oct 10 14:39 99_openshift-machineconfig_master.yaml
-rw-r--r--. 1 jdoss jdoss 1.2K Oct 10 14:39 99_openshift-machineconfig_worker.yaml
-rw-r--r--. 1 jdoss jdoss  222 Oct 10 14:39 99_role-cloud-creds-secret-reader.yaml
```

Removing the `s` from the `rm` command below:

`$ rm -rf openshift/99_openshift-cluster-api_worker-machineset-*.yaml`

Gives us the results we expect!

```
$ ls -lah openshift/
total 40K
drwxr-xr-x. 2 jdoss jdoss 4.0K Oct 10 14:45 .
drwxrwxr-x. 4 jdoss jdoss 4.0K Oct 10 14:39 ..
-rw-r--r--. 1 jdoss jdoss  293 Oct 10 14:39 99_binding-discovery.yaml
-rw-r--r--. 1 jdoss jdoss  219 Oct 10 14:39 99_cloud-creds-secret.yaml
-rw-r--r--. 1 jdoss jdoss  181 Oct 10 14:39 99_kubeadmin-password-secret.yaml
-rw-r--r--. 1 jdoss jdoss 2.7K Oct 10 14:39 99_openshift-cluster-api_master-user-data-secret.yaml
-rw-r--r--. 1 jdoss jdoss 2.7K Oct 10 14:39 99_openshift-cluster-api_worker-user-data-secret.yaml
-rw-r--r--. 1 jdoss jdoss 1.2K Oct 10 14:39 99_openshift-machineconfig_master.yaml
-rw-r--r--. 1 jdoss jdoss 1.2K Oct 10 14:39 99_openshift-machineconfig_worker.yaml
-rw-r--r--. 1 jdoss jdoss  222 Oct 10 14:39 99_role-cloud-creds-secret-reader.yaml
```

Here is the `openshift-install` version that I used.

```
$ openshift-install version
openshift-install v4.1.18-201909201915-dirty
built from commit 80c0ef5e57812daf721522db78972aa557730fc4
release image quay.io/openshift-release-dev/ocp-release@sha256:420633acf3fc7572372fe2df758152f6ab1f53a21c79a6c4b741fa0394c7df3a
```

Remove line break.
2019-10-16 14:43:38 -05:00
W. Trevor King
639c38e933 docs/user/aws/install_upi: Explain DNS-zone lookup
We shouldn't assume folks will have a private zone they can dedicate
to the sole use of the new cluster.  This commit talks users through
adjusting their DNS configuration to consume an existing zone with
arbitrary identification.

I'd like to drop the owned tag from 01_vpc.yaml, but that's been
contentious [1].  I'm punting in this commit so we can get the
consensus doc change landed.

[1]: https://github.com/openshift/installer/pull/2420#issuecomment-541236368
2019-10-11 16:22:49 -07:00
W. Trevor King
82c8b04dc0 docs/user/aws/install_upi: Wait for install-complete after manual DNS creation
I just dropped this in at the end in 14e06912a3
(docs/user/aws/install_upi: Document bring-your-own-DNS, 2019-08-14, #2221),
but you need it for a functioning cluster (something about console and
OAuth and mumble mumble).  Jeremiah got the placement right for GCP in
16d4d388ac (upi/gcp: document manual creation of apps DNS records,
2019-08-29, #2289).  This commit updates AWS to match.
2019-10-10 15:56:49 -07:00
W. Trevor King
485057af68 docs/user/*/install_upi: Explicitly set control-plane unschedulable
We grew replicas-zeroing in c22d042 (docs/user/aws/install_upi: Add
'sed' call to zero compute replicas, 2019-05-02, #1649) to set the
stage for changing the 'replicas: 0' semantics from "we'll make you
some dummy MachineSets" to "we won't make you MachineSets".  But that
hasn't happened yet, and since 64f96df (scheduler: Use schedulable
masters if no compute hosts defined, 2019-07-16, #2004) 'replicas: 0'
for compute has also meant "add the 'worker' role to control-plane
nodes".  That leads to racy problems when ingress comes through a load
balancer, because Kubernetes load balancers exclude control-plane
nodes from their target set [1,2] (although this may get relaxed
soonish [3]).  If the router pods get scheduled on the control plane
machines due to the 'worker' role, they are not reachable from the
load balancer and ingress routing breaks [4].  Seth says:

> pod nodeSelectors are not like taints/tolerations.  They only have
> effect at scheduling time.  They are not continually enforced.

which means that attempting to address this issue as a day-2 operation
would mean removing the 'worker' role from the control-plane nodes and
then manually evicting the router pods to force rescheduling.  So
until we get the changes from [3], we can either drop the zeroing [5]
or adjust the scheduler configuration to remove the effect of the
zeroing.  In both cases, this is a change we'll want to revert later
once we bump Kubernetes to pick up a fix for the service load-balancer
targets.

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1671136#c1
[2]: https://github.com/kubernetes/kubernetes/issues/65618
[3]: https://bugzilla.redhat.com/show_bug.cgi?id=1744370#c6
[4]: https://bugzilla.redhat.com/show_bug.cgi?id=1755073
[5]: https://github.com/openshift/installer/pull/2402/
2019-10-02 13:11:25 -07:00
W. Trevor King
a947609d66 docs/user: Standardize install-config property documentation
This is a bit more accessible than pointing folks at Godocs, since it
allows us to focus on the YAML property names (while Godocs
understandably focus on Go property names) and YAML renderings.  Also
break up our old "one big example" install-config.yaml into a minimal
per-platform example and a series of small extentions excercising
groups of properties.

The vSphere docs are based heavily on [1].

Also drop proxy.md.  It was added in e7edbf71fd (Add proxy
configuration to bootstrap node, 2019-06-24, #1832), but:

* Proxy testing and Squid configuration information belongs in
  openshift/release, not in the installer repository.
* docs/user/customization.md now contains a more complete proxy-config
  fragment.

OpenStack computeFlavor precedence is based on [2].

[1]: https://github.com/openshift/openshift-docs/blob/enterprise-4.2/modules/installation-vsphere-config-yaml.adoc
     Last touched by commit openshift/openshift-docs@25afc7626d , 2019-08-19
[2]: https://github.com/openshift/installer/pull/2162#discussion_r322410878
2019-09-09 12:37:28 -07:00
OpenShift Merge Robot
0ef6cbf97b Merge pull request #2227 from mandre/doc-deprecated-opts
Stop using deprecated options in documentation examples
2019-09-05 20:38:21 +02:00
W. Trevor King
14e06912a3 docs/user/aws/install_upi: Document bring-your-own-DNS
Some users want to provide their own *.apps DNS records instead of
delegating that to the ingress operator [1].  With this commit, we
tell the ingress operator not to worry about managing any hosted
zones, and walk users through how they can create the expected records
[2] themselves.

Removing the zones from the YAML manifest via sed or other POSIX
command was too complicated, so I've given up on that and moved to
Python and PyYAML [3].  There are many possible alternatives, but
PyYAML seemed the most likely to be already installed, it's packaged
for many systems if users want to install it, and the syntax is fairly
readable if users want to accomplish the same task with a different
tool of their choice.  The Python examples are more readable as
multi-line strings than if they were one-liners, and they can still be
copy-pasted into a shell.  Once faq [4] or similar becomes more common
on user systems, we can replace this with:

  $ DATA="$(faq '.compute[0].replicas=0' install-config.yaml)"
  $ echo "${DATA}" >install-config.yaml

and similar.

For not, I'm not suggesting admins monitor for other DNSRecord objects
[5] and fullful them as they show up.  In case we do decide to have
folks monitor them later, here's a sample:

  $ oc -n openshift-ingress-operator get -o yaml dnsrecord default-wildcard
  apiVersion: ingress.operator.openshift.io/v1
  kind: DNSRecord
  metadata:
    creationTimestamp: "2019-08-22T20:45:00Z"
    finalizers:
    - operator.openshift.io/ingress-dns
    generation: 1
    labels:
      ingresscontroller.operator.openshift.io/owning-ingresscontroller: default
    name: default-wildcard
    namespace: openshift-ingress-operator
    ownerReferences:
    - apiVersion: operator.openshift.io/v1
      blockOwnerDeletion: true
      controller: true
      kind: IngressController
      name: default
      uid: b31db6db-c51d-11e9-8a7a-02ae97362ddc
    resourceVersion: "8847"
    selfLink: /apis/ingress.operator.openshift.io/v1/namespaces/openshift-ingress-operator/dnsrecords/default-wildcard
    uid: b59fbbfa-c51d-11e9-8a7a-02ae97362ddc
  spec:
    dnsName: '*.apps.wking.devcluster.openshift.com.'
    recordType: CNAME
    targets:
    - ab37f072ec51d11e98a7a02ae97362dd-240922428.us-west-2.elb.amazonaws.com
  status:
    zones:
    - dnsZone:
        tags:
          Name: wking-nfnsr-int
          kubernetes.io/cluster/wking-nfnsr: owned
    - dnsZone:
        id: Z3URY6TWQ91KVV

The route listing is from a cluster running [6].

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1715635
[2]: 9ce86811e6/pkg/operator/controller/ingress/dns.go (L75-L115)
[3]: https://pyyaml.org/
[4]: https://github.com/jzelinskie/faq
[5]: d115a14661/pkg/api/v1/types.go (L18-L25)
[6]: https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/4.2.0-0.nightly-2019-08-25-233755/
2019-08-27 09:17:02 -07:00
Martin André
b0402af2a8 Stop using deprecated options in documentation examples
API version v1beta4 of install-config deprecated a few options names. While
not dramatic -- the installer knows how to update to the new format --
we should stop using deprecated options in the configuration examples
we provide.
2019-08-18 18:20:13 +02:00
W. Trevor King
1994ece05a docs/user/aws/install: openshift-install-linux-amd64 -> openshift-install
The OS/arch suffix was an artifact of our GitHub release approach
(e.g. [1]).  With the new mirror approach, the flow is going to be
more like:

  $ wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-install-linux-4.1.0-rc.5.tar.gz
  $ tar xf openshift-install-linux-4.1.0-rc.5.tar.gz
  $ ./openshift-install ...

But folks could install into their PATH, and our current docs prefer
the in-the-PATH form, so that's what I've gone with here.

[1]: https://github.com/openshift/installer/releases/tag/v0.16.1
2019-05-22 16:56:31 -07:00
W. Trevor King
c22d042fe1 docs/user/aws/install_upi: Add 'sed' call to zero compute replicas
This isn't strictly required, because we're removing the resulting
MachineSets right afterwards.  It's setting the stage for a future
where 'replicas: 0' means "no MachineSets" instead of "we'll make you
some dummy MachineSets".  And we can always remove the sed later if
that future ends up not happening.

The sed is based on [1], to replace 'replicas' only for the compute
pool (and not the control-plane pool).  While it should be
POSIX-compliant (and not specific to GNU sed or other
implementations), it is a bit finicky for a few reasons:

* The range matching will not detect matches in the first line, but
  'replicas' will always follow its parent 'compute', so we don't have
  to worry about first-line matches.

* 'compute' sorts before 'controlPlane', so we don't have to worry
  about their 'replicas: ' coming first.

* 'baseDomain' is the only other property that sorts before 'compute',
  but 'replicas: ' is not a legal substring for its domain-name value,
  so we don't have to worry about accidentally matching that.

* While all of the above mean we're safe for now, this approach could
  break down if we add additional properties in the future that sort
  before 'compute' but do allow 'replicas: ' as a valid substring.

[1]: https://stackoverflow.com/a/33416489
2019-05-02 11:41:19 -07:00
W. Trevor King
79b5cece46 upi/aws/cloudformation: api-int Route 53 record
Catching up with 13e4b702f7 (data/aws: create an api-int dns name,
2019-04-11, #1601), now that 052fceeeaf (asset/manifests: use internal
apiserver name, 2019-04-17, #1633) has moved some internal assets over
to that name.
2019-05-02 09:27:52 -07:00
W. Trevor King
d9d6e4bd80 Drop AWS UPI control-plane Machines and compute MachineSets
Folks are free to opt-in to the machine API during a UPI flow, but
creating Machine(Set)s that match their host environment requires
matching a few properties (subnet, securityGroups, ...).  Our default
templates are unlikely to do that out of the box, so just remove them
with the standard flow.  Users who want to wade in can do so, and I've
adjusted our CloudFormation templates to set the same tags as our IPI
assets to make this easier.  But with the rm call, other folks don't
have to worry about broken Machine(Set)s in their cluster confusing
the machine API or other admins.

The awkward join syntax for subnet names is because YAML doesn't
support nesting !s [1]:

  You can't nest short form functions consecutively, so a pattern like
  !GetAZs !Ref is invalid.

Also fix a few unrelated nits, e.g. the unused VpcId property in
06_cluster_worker_node.yaml.

[1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getavailabilityzones.html#w2ab1c21c24c36c17b8
2019-05-02 09:27:52 -07:00