-
Notifications
You must be signed in to change notification settings - Fork 63
/
cluster.yaml
executable file
·71 lines (69 loc) · 2.69 KB
/
cluster.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
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# TODO(kunming): kustomize this config to include all the options we currently offer through DM
apiVersion: container.cnrm.cloud.google.com/v1beta1
kind: ContainerCluster
metadata:
labels:
mesh_id: "proj-PROJECT_NUMBER" # kpt-set: proj-${gcloud.project.projectNumber}
name: KUBEFLOW-NAME # kpt-set: ${name}
spec:
initialNodeCount: 2
addonsConfig:
httpLoadBalancing:
disabled: false
clusterAutoscaling:
enabled: true
autoProvisioningDefaults:
oauthScopes:
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring
- https://www.googleapis.com/auth/devstorage.read_only
serviceAccountRef:
name: KUBEFLOW-NAME-vm # kpt-set: ${name}-vm
resourceLimits:
- resourceType: cpu
maximum: 128
- resourceType: memory
maximum: 2000
- resourceType: nvidia-tesla-k80
maximum: 16
releaseChannel:
# Per https://github.com/GoogleCloudPlatform/k8s-config-connector/issues/194
# use upper case for the channels
channel: STABLE
# Master version controls the kubernetes API version.
# Future upgrade of master version might break Kubeflow deployment.
# At the time of writing, STABLE release channel is using 1.17.
# knative requires Kubernetes version to be 1.18+. Therefore we set
# master version below. We need to make sure reviewing this for future release.
# Autopilot mode will enforce automatic node upgrade.
# minMasterVersion: '1.18'
location: LOCATION # kpt-set: ${location}
workloadIdentityConfig:
identityNamespace: PROJECT.svc.id.goog # kpt-set: ${gcloud.core.project}.svc.id.goog
loggingService: logging.googleapis.com/kubernetes
monitoringService: monitoring.googleapis.com/kubernetes
nodeConfig:
machineType: e2-standard-8
metadata:
disable-legacy-endpoints: "true"
oauthScopes:
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring
- https://www.googleapis.com/auth/devstorage.read_only
serviceAccountRef:
name: KUBEFLOW-NAME-vm # kpt-set: ${name}-vm
workloadMetadataConfig:
nodeMetadata: GKE_METADATA_SERVER