-
Notifications
You must be signed in to change notification settings - Fork 102
/
gke.yaml
56 lines (56 loc) · 1.53 KB
/
gke.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
apiVersion: container.gcp.crossplane.io/v1beta2
kind: Cluster
metadata:
name: example-cluster
spec:
forProvider:
initialClusterVersion: "1.20"
location: us-west2
autoscaling:
autoprovisioningNodePoolDefaults:
serviceAccount: sa-test
networkConfig:
enableIntraNodeVisibility: true
loggingService: logging.googleapis.com/kubernetes
monitoringService: monitoring.googleapis.com/kubernetes
addonsConfig:
gcePersistentDiskCsiDriverConfig:
enabled: true
network: "default"
writeConnectionSecretToRef:
namespace: default
name: gke-conn
---
apiVersion: container.gcp.crossplane.io/v1beta1
kind: NodePool
metadata:
name: crossplane-np
spec:
forProvider:
autoscaling:
autoprovisioned: false
enabled: true
maxNodeCount: 5
minNodeCount: 3
clusterRef:
name: example-cluster
config:
serviceAccount: sa-test
machineType: n1-standard-1
sandboxConfig:
type: gvisor
diskSizeGb: 120
diskType: pd-ssd
imageType: cos_containerd
labels:
test-label: crossplane-created
oauthScopes:
- "https://www.googleapis.com/auth/devstorage.read_only"
- "https://www.googleapis.com/auth/logging.write"
- "https://www.googleapis.com/auth/monitoring"
- "https://www.googleapis.com/auth/servicecontrol"
- "https://www.googleapis.com/auth/service.management.readonly"
- "https://www.googleapis.com/auth/trace.append"
initialNodeCount: 3
locations:
- "us-west2-a"