1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/capi-yaml-machine-template-aws.adoc

44 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2022-07-18 15:27:17 -04:00
// Module included in the following assemblies:
//
2024-05-30 12:47:38 -04:00
// * machine_management/cluster_api_machine_management/cluster_api_provider_configurations/cluster-api-config-options-aws.adoc
2022-07-18 15:27:17 -04:00
:_mod-docs-content-type: REFERENCE
2022-07-18 15:27:17 -04:00
[id="capi-yaml-machine-template-aws_{context}"]
2024-05-30 12:47:38 -04:00
= Sample YAML for a Cluster API machine template resource on {aws-full}
2022-07-18 15:27:17 -04:00
2024-05-30 12:47:38 -04:00
The machine template resource is provider-specific and defines the basic properties of the machines that a compute machine set creates.
The compute machine set references this template when creating machines.
2022-07-18 15:27:17 -04:00
[source,yaml]
----
2024-03-07 14:38:05 -05:00
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSMachineTemplate # <1>
2022-07-18 15:27:17 -04:00
metadata:
2024-03-07 14:38:05 -05:00
name: <template_name> # <2>
2022-07-18 15:27:17 -04:00
namespace: openshift-cluster-api
spec:
template:
2024-03-07 14:38:05 -05:00
spec: # <3>
iamInstanceProfile: # ...
2022-07-18 15:27:17 -04:00
instanceType: m5.large
2024-03-07 14:38:05 -05:00
ignition:
storageType: UnencryptedUserData
version: "3.4"
2022-07-18 15:27:17 -04:00
ami:
2024-03-07 14:38:05 -05:00
id: # ...
2022-07-18 15:27:17 -04:00
subnet:
filters:
- name: tag:Name
values:
2024-03-07 14:38:05 -05:00
- # ...
2022-07-18 15:27:17 -04:00
additionalSecurityGroups:
- filters:
- name: tag:Name
values:
2024-03-07 14:38:05 -05:00
- # ...
2022-07-18 15:27:17 -04:00
----
2024-05-30 12:47:38 -04:00
<1> Specify the machine template kind.
This value must match the value for your platform.
2022-07-18 15:27:17 -04:00
<2> Specify a name for the machine template.
2024-05-30 12:47:38 -04:00
<3> Specify the details for your environment.
The values here are examples.