Switch auth.atat to direct nodeport service

This commit is contained in:
Devon Mackay 2018-08-08 08:29:38 -04:00
parent 84b0bda701
commit e1a49b2e72

View File

@ -22,7 +22,7 @@ spec:
spec: spec:
containers: containers:
- name: atst - name: atst
image: registry.atat.codes:443/atst-prod:cc680fa image: registry.atat.codes:443/atst-prod:e9b6f76
envFrom: envFrom:
- configMapRef: - configMapRef:
name: atst-envvars name: atst-envvars
@ -116,12 +116,26 @@ metadata:
namespace: atat namespace: atat
spec: spec:
ports: ports:
- name: "http" - name: http
port: 80 port: 80
targetPort: 8442 targetPort: 8442
- name: "https" selector:
port: 443 app: atst
targetPort: 8443 ---
apiVersion: v1
kind: Service
metadata:
labels:
app: atst
name: atst-auth
namespace: atat
spec:
type: NodePort
ports:
- name: https
protocol: TCP
nodePort: 32751
port: 8443
selector: selector:
app: atst app: atst
--- ---
@ -147,22 +161,3 @@ spec:
backend: backend:
serviceName: atst serviceName: atst
servicePort: 80 servicePort: 80
---
apiVersion: extensions/v1beta1
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: atst-auth
namespace: atat
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 10m
ingress.kubernetes.io/ssl-passthrough: "true"
spec:
rules:
- host: auth.atat.codes
http:
paths:
- path: /
backend:
serviceName: atst
servicePort: 443