Add k8s networking.

- bind static azure IPs
- Add load balancers for both CSPs
This commit is contained in:
dandds
2019-07-30 10:59:01 -04:00
parent d056191b01
commit 4c70d59c5d
5 changed files with 182 additions and 76 deletions

View File

@@ -48,7 +48,9 @@ spec:
image: nginx:alpine
ports:
- containerPort: 8442
name: http
name: main
- containerPort: 8443
name: auth
volumeMounts:
- name: nginx-config
mountPath: "/etc/nginx/conf.d/atst.conf"
@@ -137,12 +139,29 @@ kind: Service
metadata:
labels:
app: atst
name: atst
name: atst-main
namespace: atat
spec:
loadBalancerIP: 13.92.235.6
ports:
- port: 80
targetPort: 8442
selector:
role: web
type: LoadBalancer
---
apiVersion: v1
kind: Service
metadata:
labels:
app: atst
name: atst-auth
namespace: atat
spec:
loadBalancerIP: 23.100.24.41
ports:
- port: 80
targetPort: 8443
selector:
role: web
type: LoadBalancer