{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1067","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1067/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1067/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1067/events","html_url":"https://github.com/terraform-providers/terraform-provider-google/issues/1067","id":295930303,"number":1067,"title":"Allow specifying accelerators in cluster node_config","user":{"login":"kmontag","id":388637,"avatar_url":"https://avatars1.githubusercontent.com/u/388637?v=4","gravatar_id":"","url":"https://api.github.com/users/kmontag","html_url":"https://github.com/kmontag","followers_url":"https://api.github.com/users/kmontag/followers","following_url":"https://api.github.com/users/kmontag/following{/other_user}","gists_url":"https://api.github.com/users/kmontag/gists{/gist_id}","starred_url":"https://api.github.com/users/kmontag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmontag/subscriptions","organizations_url":"https://api.github.com/users/kmontag/orgs","repos_url":"https://api.github.com/users/kmontag/repos","events_url":"https://api.github.com/users/kmontag/events{/privacy}","received_events_url":"https://api.github.com/users/kmontag/received_events","type":"User","site_admin":false},"labels":[{"id":620326525,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/labels/enhancement","name":"enhancement","color":"d4c5f9","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-09T16:31:19Z","updated_at":"2018-02-14T18:35:02Z","closed_at":null,"author_association":"NONE","body":"Beta support for GPUs on Kubernetes clusters has been released: https://cloud.google.com/kubernetes-engine/docs/concepts/gpus\r\n\r\nIt looks like they can be added via REST API using the `accelerators` field in a node pool configuration, e.g. (when creating a cluster):\r\n\r\n```\r\nPOST https://container.googleapis.com/v1/projects/foo/zones/us-west1-a/clusters\r\n{\r\n  \"cluster\": {\r\n    \"name\": \"gpu-test\",\r\n    \"zone\": \"us-west1-a\",\r\n    \"nodePools\": [\r\n      {\r\n        \"name\": \"default-pool\",\r\n        \"initialNodeCount\": 1,\r\n        \"config\": {\r\n          // ...\r\n          \"accelerators\": [\r\n            {\r\n              \"acceleratorCount\": 1,\r\n              \"acceleratorType\": \"nvidia-tesla-k80\"\r\n            }\r\n          ]\r\n        },\r\n        // ...\r\n      }\r\n    ],\r\n    // ...\r\n  }\r\n}\r\n```\r\n\r\nWould be great if this could be supported in the `node_config` block for `google_container_cluster` / `google_container_node_pool`.\r\n\r\nThanks!\r\n\r\n### Terraform Version\r\nRun `terraform -v` to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.\r\n\r\n```\r\nTerraform v0.11.3\r\n+ provider.google v1.5.0\r\n```\r\n\r\n### Affected Resource(s)\r\n- google_container_cluster\r\n- google_container_node_pool"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/comments/365702296","html_url":"https://github.com/terraform-providers/terraform-provider-google/issues/1067#issuecomment-365702296","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/1067","id":365702296,"user":{"login":"ndmckinley","id":605324,"avatar_url":"https://avatars2.githubusercontent.com/u/605324?v=4","gravatar_id":"","url":"https://api.github.com/users/ndmckinley","html_url":"https://github.com/ndmckinley","followers_url":"https://api.github.com/users/ndmckinley/followers","following_url":"https://api.github.com/users/ndmckinley/following{/other_user}","gists_url":"https://api.github.com/users/ndmckinley/gists{/gist_id}","starred_url":"https://api.github.com/users/ndmckinley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndmckinley/subscriptions","organizations_url":"https://api.github.com/users/ndmckinley/orgs","repos_url":"https://api.github.com/users/ndmckinley/repos","events_url":"https://api.github.com/users/ndmckinley/events{/privacy}","received_events_url":"https://api.github.com/users/ndmckinley/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T18:35:02Z","updated_at":"2018-02-14T18:35:02Z","author_association":"COLLABORATOR","body":"That's great!  Tag me in the PR and I'll expedite the review."}}
{"actor":{"display_login":"ndmckinley"}}