Skip to content

Commit

Permalink
Added arm support
Browse files Browse the repository at this point in the history
Signed-off-by: kadern0 <kaderno@gmail.com>
  • Loading branch information
kadern0 authored and alexellis committed Mar 14, 2020
1 parent 28fe29b commit e2b113d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions cmd/apps/metricsserver_app.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

package apps

import (
Expand Down Expand Up @@ -48,6 +45,9 @@ func MakeInstallMetricsServer() *cobra.Command {
return fmt.Errorf(`to override the "kube-system", install via tiller`)
}

arch := getNodeArchitecture()
fmt.Printf("Node architecture: %q\n", arch)

helm3, _ := command.Flags().GetBool("helm3")

if helm3 {
Expand Down Expand Up @@ -78,6 +78,15 @@ func MakeInstallMetricsServer() *cobra.Command {

overrides := map[string]string{}
overrides["args"] = `{--kubelet-insecure-tls,--kubelet-preferred-address-types=InternalIP\,ExternalIP\,Hostname}`
switch arch {
case "arm":
overrides["image.repository"] = `gcr.io/google_containers/metrics-server-arm`
break
case "arm64", "aarch64":
overrides["image.repository"] = `gcr.io/google_containers/metrics-server-arm64`
break
}

fmt.Println("Chart path: ", chartPath)

if helm3 {
Expand Down

0 comments on commit e2b113d

Please sign in to comment.