s390x ingress controller support

This commit is contained in:
Rye Terrell 2017-09-18 11:57:29 -05:00
parent cd343fd806
commit ab9f95aa8e
2 changed files with 5 additions and 2 deletions

View File

@ -566,6 +566,9 @@ def launch_default_ingress_controller():
return return
# Render the ingress replication controller manifest # Render the ingress replication controller manifest
context['ingress_image'] = "gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.13"
if arch() == 's390x':
context['ingress_image'] = "docker.io/cdkbot/nginx-ingress-controller-s390x:0.9.0-beta.13"
manifest = addon_path.format('ingress-replication-controller.yaml') manifest = addon_path.format('ingress-replication-controller.yaml')
render('ingress-replication-controller.yaml', manifest, context) render('ingress-replication-controller.yaml', manifest, context)
hookenv.log('Creating the ingress replication controller.') hookenv.log('Creating the ingress replication controller.')

View File

@ -24,7 +24,7 @@ spec:
# see https://github.com/kubernetes/kubernetes/issues/23920 # see https://github.com/kubernetes/kubernetes/issues/23920
hostNetwork: true hostNetwork: true
containers: containers:
- image: gcr.io/google_containers/nginx-ingress-controller:0.8.3 - image: {{ ingress_image }}
name: nginx-ingress-lb name: nginx-ingress-lb
imagePullPolicy: Always imagePullPolicy: Always
livenessProbe: livenessProbe:
@ -50,4 +50,4 @@ spec:
args: args:
- /nginx-ingress-controller - /nginx-ingress-controller
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend - --default-backend-service=$(POD_NAMESPACE)/default-http-backend
- --nginx-configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf - --configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf