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:
126
126
labels :
127
127
name : staging
128
128
---
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
+ ---
129
152
apiVersion : v1
130
153
kind : Service
131
154
metadata :
@@ -136,8 +159,8 @@ metadata:
136
159
spec :
137
160
# if your cluster supports it, uncomment the following to automatically create
138
161
# an external load-balanced IP for the frontend service.
139
- type : LoadBalancer
140
- # type: NodePort
162
+ # type: LoadBalancer
163
+ type : NodePort
141
164
ports :
142
165
- port : 8001
143
166
targetPort : 8000
@@ -161,7 +184,7 @@ spec:
161
184
spec :
162
185
containers :
163
186
- 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
165
188
# temp, just to test kubernetes
166
189
# envFrom:
167
190
# - configMapRef:
You can’t perform that action at this time.
0 commit comments