- Fixing Kubernetes API forwarding in the ELB
 - Fixing DNS for kubectul
 - Fixing Suggestions: output for bastion
This commit is contained in:
Kris Childress 2016-11-03 13:59:02 -06:00
parent 78ecdb2165
commit 712882f080
2 changed files with 20 additions and 5 deletions

View File

@ -30,6 +30,7 @@ import (
"k8s.io/kops/upup/pkg/kutil"
"os"
"strings"
"k8s.io/kops/pkg/apis/kops"
)
type UpdateClusterOptions struct {
@ -188,7 +189,11 @@ func RunUpdateCluster(f *util.Factory, cmd *cobra.Command, args []string, out io
fmt.Printf("\n")
fmt.Printf("Suggestions:\n")
fmt.Printf(" * list nodes: kubectl get nodes --show-labels\n")
fmt.Printf(" * ssh to the master: ssh -i ~/.ssh/id_rsa admin@%s\n", cluster.Spec.MasterPublicName)
if cluster.Spec.Topology.Masters == kops.TopologyPublic {
fmt.Printf(" * ssh to the master: ssh -i ~/.ssh/id_rsa admin@%s\n", cluster.Spec.MasterPublicName)
}else {
fmt.Printf(" * ssh to the bastion: ssh -i ~/.ssh/id_rsa admin@%s\n", cluster.Spec.MasterPublicName)
}
fmt.Printf(" * read about installing addons: https://github.com/kubernetes/kops/blob/master/docs/addons.md\n")
fmt.Printf("\n")
}

View File

@ -198,8 +198,7 @@ loadBalancer/api.{{ ClusterName }}:
# ---------------------------------------------------------------
loadBalancerHealthChecks/api.{{ ClusterName }}:
loadBalancer: loadBalancer/api.{{ ClusterName }}
# 10249 Is the default kube-proxy healthz protocol
target: HTTP:10249/healthz
target: TCP:443
healthyThreshold: 2
unhealthyThreshold: 2
interval: 10
@ -208,8 +207,8 @@ securityGroupRule/kube-proxy-api-elb:
securityGroup: securityGroup/masters.{{ ClusterName }}
sourceGroup: securityGroup/api-elb.{{ ClusterName }}
protocol: tcp
fromPort: 10249
toPort: 10249
fromPort: 443
toPort: 443
# ---------------------------------------------------------------
@ -246,3 +245,14 @@ securityGroupRule/https-api-elb:
fromPort: 443
toPort: 443
# ---------------------------------------------------------------
# DNS - Api
#
# This will point our DNS to the load balancer, and put the pieces
# together for kubectl to be work
# ---------------------------------------------------------------
dnsZone/{{ .DNSZone }}: {}
dnsName/{{ .MasterPublicName }}:
Zone: dnsZone/{{ .DNSZone }}
ResourceType: "A"
TargetLoadBalancer: loadBalancer/api.{{ ClusterName }}