Skip to content

Commit

Permalink
Enable TPU in GKE (kubeflow#1766) (kubeflow#1774)
Browse files Browse the repository at this point in the history
* Add enable_tpu setting

* Merge change about Stackdriver GKE enabled only when using v1beta1

* Add enable_tpu setting
  • Loading branch information
dsdinter authored and k8s-ci-robot committed Oct 24, 2018
1 parent 9640323 commit f98dbaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ resources:
gpu-pool-enable-autoscaling: true
gpu-pool-min-nodes: 0
gpu-pool-max-nodes: 10
# Whether to enable TPUs
enable_tpu: false
securityConfig:
# Whether to use a cluster with private IPs
# Use v1beta1 api
Expand Down
7 changes: 6 additions & 1 deletion deployment/gke/deployment_manager_configs/cluster.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@ resources:
name: {{ CLUSTER_NAME }}
initialClusterVersion: "{{ properties['cluster-version'] }}"
{% if properties['gkeApiVersion'] == 'v1beta1' %}
# We need 1.10.2 to support Stackdrivier GKE.
# We need 1.10.2 to support Stackdriver GKE.
loggingService: logging.googleapis.com/kubernetes
monitoringService: monitoring.googleapis.com/kubernetes
{% if properties['enable_tpu'] %}
enable_tpu: {{ properties['enable_tpu'] }}
ipAllocationPolicy:
useIpAliases: {{ properties['enable_tpu'] }}
{% endif %}
podSecurityPolicyConfig:
enabled: {{ properties['securityConfig']['podSecurityPolicy'] }}
{% endif %}
Expand Down

0 comments on commit f98dbaa

Please sign in to comment.