Skip to content

Commit 4a24e07

Browse files
authored
chore: update production kubernetes spec with k8s 1.18 definitions (#2895)
1 parent c8901ce commit 4a24e07

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hokusai/production.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
selector:
1212
matchLabels:
1313
app: positron
14+
component: web
15+
layer: application
1416
strategy:
1517
rollingUpdate:
1618
maxSurge: 1
@@ -87,7 +89,7 @@ metadata:
8789
namespace: default
8890
spec:
8991
scaleTargetRef:
90-
apiVersion: extensions/v1beta1
92+
apiVersion: apps/v1
9193
kind: Deployment
9294
name: positron-web
9395
minReplicas: 2
@@ -216,18 +218,20 @@ spec:
216218
type: ClusterIP
217219

218220
---
219-
apiVersion: extensions/v1beta1
221+
apiVersion: networking.k8s.io/v1beta1
220222
kind: Ingress
221223
metadata:
222224
name: positron
223225
annotations:
224226
nginx.ingress.kubernetes.io/whitelist-source-range: "{{ cloudflareIpSourceRanges|join(',') }}"
225227
spec:
228+
ingressClassName: nginx
226229
rules:
227230
- host: writer.artsy.net
228231
http:
229232
paths:
230233
- path: /
234+
pathType: Prefix
231235
backend:
232236
serviceName: positron-web-internal
233237
servicePort: http

0 commit comments

Comments
 (0)