Merge pull request #7678 from justinsb/aws_api_on_443
AWS: Change apiserver to listen on 443 directly, not through nginx
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if grains['cloud'] is defined and grains['cloud'] == 'gce' %}
|
||||
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce' ] %}
|
||||
/srv/kubernetes/basic_auth.csv:
|
||||
file.managed:
|
||||
- source: salt://kube-apiserver/basic_auth.csv
|
||||
|
@@ -46,7 +46,7 @@
|
||||
{% set client_ca_file = "" -%}
|
||||
|
||||
{% set secure_port = "6443" -%}
|
||||
{% if grains['cloud'] is defined and grains['cloud'] == 'gce' %}
|
||||
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce' ] %}
|
||||
{% set secure_port = "443" -%}
|
||||
{% set client_ca_file = "--client_ca_file=/srv/kubernetes/ca.crt" -%}
|
||||
{% endif -%}
|
||||
@@ -60,7 +60,7 @@
|
||||
{% endif -%}
|
||||
{% endif -%}
|
||||
|
||||
{% if grains['cloud'] is defined and grains['cloud'] == 'gce' %}
|
||||
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce' ] %}
|
||||
{% set basic_auth_file = "--basic_auth_file=/srv/kubernetes/basic_auth.csv" -%}
|
||||
{% endif -%}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
{% endif -%}
|
||||
|
||||
# TODO: remove nginx for other cloud providers.
|
||||
{% if grains['cloud'] is defined and grains['cloud'] == 'gce' -%}
|
||||
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce' ] %}
|
||||
{% set api_servers_with_port = api_servers -%}
|
||||
{% else -%}
|
||||
{% set api_servers_with_port = api_servers + ":6443" -%}
|
||||
|
@@ -33,7 +33,7 @@ base:
|
||||
- kube-controller-manager
|
||||
- kube-scheduler
|
||||
- monit
|
||||
{% if grains['cloud'] is defined and grains['cloud'] != 'gce' %}
|
||||
{% if grains['cloud'] is defined and not grains.cloud in [ 'aws', 'gce' ] %}
|
||||
- nginx
|
||||
{% endif %}
|
||||
- cadvisor
|
||||
|
Reference in New Issue
Block a user