diff --git a/test/nginx-external-auth/deployment.yaml b/test/nginx-external-auth/deployment.yaml index f4b408b9..e7026579 100644 --- a/test/nginx-external-auth/deployment.yaml +++ b/test/nginx-external-auth/deployment.yaml @@ -12,39 +12,37 @@ spec: app: nginx-external-auth spec: volumes: - - name: config - configMap: - name: nginx-cfg - containers: - - name: www - image: nginx:alpine - resources: - limits: - memory: "128Mi" - cpu: "500m" - requests: - memory: "128Mi" - cpu: "500m" - ports: - - containerPort: 80 - volumeMounts: - name: config - mountPath: /etc/nginx/conf.d - readOnly: true - - name: anubis - image: ttl.sh/techaro/anubis-external-auth:latest - imagePullPolicy: Always - resources: - limits: - cpu: 500m - memory: 128Mi - requests: - cpu: 250m - memory: 128Mi - env: - - name: TARGET - value: " " - - name: REDIRECT_DOMAINS - value: nginx.local.cetacean.club - - + configMap: + name: nginx-cfg + containers: + - name: www + image: nginx:alpine + resources: + limits: + memory: "128Mi" + cpu: "500m" + requests: + memory: "128Mi" + cpu: "500m" + ports: + - containerPort: 80 + volumeMounts: + - name: config + mountPath: /etc/nginx/conf.d + readOnly: true + - name: anubis + image: ttl.sh/techaro/anubis:latest + imagePullPolicy: Always + resources: + limits: + cpu: 500m + memory: 128Mi + requests: + cpu: 250m + memory: 128Mi + env: + - name: TARGET + value: " " + - name: REDIRECT_DOMAINS + value: nginx.local.cetacean.club diff --git a/test/nginx-external-auth/ingress.yaml b/test/nginx-external-auth/ingress.yaml index 6fc87375..2cf2c0ac 100644 --- a/test/nginx-external-auth/ingress.yaml +++ b/test/nginx-external-auth/ingress.yaml @@ -9,17 +9,17 @@ metadata: spec: ingressClassName: traefik tls: - - hosts: - - nginx.local.cetacean.club - secretName: nginx-local-cetacean-club-public-tls + - hosts: + - nginx.local.cetacean.club + secretName: nginx-local-cetacean-club-public-tls rules: - - host: nginx.local.cetacean.club - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: nginx-external-auth - port: - name: http + - host: nginx.local.cetacean.club + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: nginx-external-auth + port: + name: http diff --git a/test/nginx-external-auth/kustomization.yaml b/test/nginx-external-auth/kustomization.yaml index 7410f972..b11a6e77 100644 --- a/test/nginx-external-auth/kustomization.yaml +++ b/test/nginx-external-auth/kustomization.yaml @@ -7,4 +7,4 @@ configMapGenerator: - name: nginx-cfg behavior: create files: - - ./conf.d/default.conf + - ./conf.d/default.conf diff --git a/test/nginx-external-auth/service.yaml b/test/nginx-external-auth/service.yaml index d2e018cf..5ce5c245 100644 --- a/test/nginx-external-auth/service.yaml +++ b/test/nginx-external-auth/service.yaml @@ -6,8 +6,8 @@ spec: selector: app: nginx-external-auth ports: - - name: http - protocol: TCP - port: 80 - targetPort: 80 + - name: http + protocol: TCP + port: 80 + targetPort: 80 type: ClusterIP diff --git a/test/nginx-external-auth/start.sh b/test/nginx-external-auth/start.sh index 044238ab..ec3faf0e 100755 --- a/test/nginx-external-auth/start.sh +++ b/test/nginx-external-auth/start.sh @@ -4,20 +4,20 @@ set -euo pipefail # Build container image ( - cd ../.. \ - && npm ci \ - && npm run container -- \ - --docker-repo ttl.sh/techaro/anubis-external-auth \ - --docker-tags ttl.sh/techaro/anubis-external-auth:latest + cd ../.. && + npm ci && + npm run container -- \ + --docker-repo ttl.sh/techaro/anubis \ + --docker-tags ttl.sh/techaro/anubis:latest ) kubectl apply -k . echo "open https://nginx.local.cetacean.club, press control c when done" control_c() { - kubectl delete -k . - exit + kubectl delete -k . + exit } trap control_c SIGINT -sleep infinity \ No newline at end of file +sleep infinity