File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed
Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,29 @@ metadata:
126126 labels :
127127 name : staging
128128---
129+ apiVersion : networking.k8s.io/v1beta1
130+ kind : Ingress
131+ metadata :
132+ name : staging-editor-ingress-with-auth
133+ namespace : staging
134+ annotations :
135+ kubernetes.io/ingress.class : nginx
136+ # type of authentication
137+ ingress.kubernetes.io/auth-type : basic
138+ # name of the secret that contains the user/password definitions
139+ ingress.kubernetes.io/auth-secret : basic-auth
140+ # message to display with an appropriate context why the authentication is required
141+ ingress.kubernetes.io/auth-realm : ' Authentication Required - p5.js Web Editor Staging'
142+ # kubernetes.io/ingress.global-static-ip-name: "web-editor-staging-ip"
143+ spec :
144+ rules :
145+ - http :
146+ paths :
147+ - path : /
148+ backend :
149+ serviceName : web-editor-node
150+ servicePort : 8001
151+ ---
129152apiVersion : v1
130153kind : Service
131154metadata :
@@ -136,8 +159,8 @@ metadata:
136159spec :
137160 # if your cluster supports it, uncomment the following to automatically create
138161 # an external load-balanced IP for the frontend service.
139- type : LoadBalancer
140- # type: NodePort
162+ # type: LoadBalancer
163+ type : NodePort
141164 ports :
142165 - port : 8001
143166 targetPort : 8000
@@ -161,7 +184,7 @@ spec:
161184 spec :
162185 containers :
163186 - name : web-editor-app
164- image : index.docker.io/catarak/p5.js-web-editor:latest
187+ image : index.docker.io/catarak/p5.js-web-editor-staging :latest
165188 # temp, just to test kubernetes
166189 # envFrom:
167190 # - configMapRef:
You can’t perform that action at this time.
0 commit comments