Skip to content

Commit

Permalink
chore: update ./hokusai/staging.yml with k8s 1.18 definitions (#6700)
Browse files Browse the repository at this point in the history
  • Loading branch information
izakp authored Nov 24, 2020
1 parent d941469 commit a85a920
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions hokusai/staging.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: force-web
labels:
app: force
layer: application
component: web
spec:
strategy:
rollingUpdate:
maxSurge: 2
maxUnavailable: 0
type: RollingUpdate
selector:
matchLabels:
app: force
layer: application
component: web
template:
metadata:
labels:
Expand Down Expand Up @@ -81,7 +90,7 @@ metadata:
namespace: default
spec:
scaleTargetRef:
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
name: force-web
minReplicas: 2
Expand Down Expand Up @@ -111,18 +120,20 @@ spec:
type: ClusterIP

---
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: force
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: "{{ cloudflareIpSourceRanges|join(',') }}"
spec:
ingressClassName: nginx
rules:
- host: staging.artsy.net
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: force-web-internal
servicePort: force-http

0 comments on commit a85a920

Please sign in to comment.