-
Notifications
You must be signed in to change notification settings - Fork 26
/
cluster-template-managed.yaml
72 lines (72 loc) · 1.92 KB
/
cluster-template-managed.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
labels:
cluster.x-k8s.io/cluster-name: "${CLUSTER_NAME}"
name: "${CLUSTER_NAME}"
namespace: "${NAMESPACE}"
spec:
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: OCIManagedCluster
name: "${CLUSTER_NAME}"
namespace: "${NAMESPACE}"
controlPlaneRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: OCIManagedControlPlane
name: "${CLUSTER_NAME}"
namespace: "${NAMESPACE}"
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: OCIManagedCluster
metadata:
labels:
cluster.x-k8s.io/cluster-name: "${CLUSTER_NAME}"
name: "${CLUSTER_NAME}"
spec:
compartmentId: "${OCI_COMPARTMENT_ID}"
---
kind: OCIManagedControlPlane
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
metadata:
name: "${CLUSTER_NAME}"
namespace: "${NAMESPACE}"
spec:
version: "${KUBERNETES_VERSION}"
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachinePool
metadata:
name: ${CLUSTER_NAME}-mp-0
namespace: default
annotations:
"cluster.x-k8s.io/replicas-managed-by": ""
spec:
clusterName: ${CLUSTER_NAME}
replicas: ${NODE_MACHINE_COUNT}
template:
spec:
clusterName: ${CLUSTER_NAME}
bootstrap:
dataSecretName: ""
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: OCIManagedMachinePool
name: ${CLUSTER_NAME}-mp-0
version: ${KUBERNETES_VERSION}
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: OCIManagedMachinePool
metadata:
name: ${CLUSTER_NAME}-mp-0
namespace: default
spec:
version: "${KUBERNETES_VERSION}"
nodeShape: "${OCI_MANAGED_NODE_SHAPE=VM.Standard.E4.Flex}"
sshPublicKey: "${OCI_SSH_KEY}"
nodeSourceViaImage:
imageId: ${OCI_MANAGED_NODE_IMAGE_ID:=""}
bootVolumeSizeInGBs: ${OCI_MANAGED_NODE_BOOT_VOLUME_SIZE=50}
nodeShapeConfig:
ocpus: "${OCI_MANAGED_NODE_MACHINE_TYPE_OCPUS=1}"
---