Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tables-api/bin/deploy-ingress-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ template=$( cat "$template_path" | \
echo "Creating ingress-nginx resources..."

# Apply the template.
echo "$template" | kubectl apply -f -
echo "$template" | kubectl apply -f -
3 changes: 2 additions & 1 deletion tables-api/ingress-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ spec:
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/component: controller
Expand All @@ -409,6 +409,7 @@ metadata:
name: tables-api-nginx-controller
namespace: tables-api-nginx
spec:
serviceName: tables-api-nginx-controller
minReadySeconds: 0
revisionHistoryLimit: 10
selector:
Expand Down
8 changes: 5 additions & 3 deletions tables-api/tables-api.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: tables-api-primary
labels:
app: tables-api-primary
spec:
replicas: 4
serviceName: tables-api-primary
selector:
matchLabels:
component: tables-api-primary
Expand Down Expand Up @@ -73,13 +74,14 @@ spec:
timeoutSeconds: 20
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: tables-api-reader
labels:
app: tables-api-reader
spec:
replicas: 6
serviceName: tables-api-reader
selector:
matchLabels:
component: tables-api-reader
Expand Down Expand Up @@ -195,4 +197,4 @@ spec:
service:
name: tables-api-primary
port:
number: 80
number: 80