Skip to content

Commit 38c1e14

Browse files
committed
TEST/MEDIUM: Use the builtin HTTP server as default backend
1 parent 55be603 commit 38c1e14

File tree

9 files changed

+7
-129
lines changed

9 files changed

+7
-129
lines changed

deploy/haproxy-ingress-daemonset.yaml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -101,47 +101,6 @@ metadata:
101101
namespace: haproxy-controller
102102
data:
103103

104-
---
105-
apiVersion: apps/v1
106-
kind: Deployment
107-
metadata:
108-
labels:
109-
run: ingress-default-backend
110-
name: haproxy-kubernetes-ingress-default-backend
111-
namespace: haproxy-controller
112-
spec:
113-
replicas: 1
114-
selector:
115-
matchLabels:
116-
run: ingress-default-backend
117-
template:
118-
metadata:
119-
labels:
120-
run: ingress-default-backend
121-
spec:
122-
containers:
123-
- name: ingress-default-backend
124-
image: gcr.io/google_containers/defaultbackend:1.0
125-
ports:
126-
- containerPort: 8080
127-
128-
---
129-
apiVersion: v1
130-
kind: Service
131-
metadata:
132-
labels:
133-
run: ingress-default-backend
134-
name: haproxy-kubernetes-ingress-default-backend
135-
namespace: haproxy-controller
136-
spec:
137-
selector:
138-
run: ingress-default-backend
139-
ports:
140-
- name: port-1
141-
port: 8080
142-
protocol: TCP
143-
targetPort: 8080
144-
145104
---
146105
apiVersion: apps/v1
147106
kind: DaemonSet
@@ -165,7 +124,6 @@ spec:
165124
image: haproxytech/kubernetes-ingress
166125
args:
167126
- --configmap=haproxy-controller/haproxy-kubernetes-ingress
168-
- --default-backend-service=haproxy-controller/haproxy-kubernetes-ingress-default-backend
169127
securityContext:
170128
runAsUser: 1000
171129
runAsGroup: 1000

deploy/haproxy-ingress.yaml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -101,47 +101,6 @@ metadata:
101101
namespace: haproxy-controller
102102
data:
103103

104-
---
105-
apiVersion: apps/v1
106-
kind: Deployment
107-
metadata:
108-
labels:
109-
run: ingress-default-backend
110-
name: haproxy-kubernetes-ingress-default-backend
111-
namespace: haproxy-controller
112-
spec:
113-
replicas: 1
114-
selector:
115-
matchLabels:
116-
run: ingress-default-backend
117-
template:
118-
metadata:
119-
labels:
120-
run: ingress-default-backend
121-
spec:
122-
containers:
123-
- name: ingress-default-backend
124-
image: gcr.io/google_containers/defaultbackend:1.0
125-
ports:
126-
- containerPort: 8080
127-
128-
---
129-
apiVersion: v1
130-
kind: Service
131-
metadata:
132-
labels:
133-
run: ingress-default-backend
134-
name: haproxy-kubernetes-ingress-default-backend
135-
namespace: haproxy-controller
136-
spec:
137-
selector:
138-
run: ingress-default-backend
139-
ports:
140-
- name: port-1
141-
port: 8080
142-
protocol: TCP
143-
targetPort: 8080
144-
145104
---
146105
apiVersion: apps/v1
147106
kind: Deployment
@@ -166,7 +125,6 @@ spec:
166125
image: haproxytech/kubernetes-ingress
167126
args:
168127
- --configmap=haproxy-controller/haproxy-kubernetes-ingress
169-
- --default-backend-service=haproxy-controller/haproxy-kubernetes-ingress-default-backend
170128
securityContext:
171129
runAsUser: 1000
172130
runAsGroup: 1000

deploy/tests/config/1.default-backend.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.
File renamed without changes.

deploy/tests/config/4.ingress-controller.yaml renamed to deploy/tests/config/3.ingress-controller.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ spec:
2626
requests:
2727
memory: 256Mi
2828
args:
29-
- --default-backend-service=$(POD_NAMESPACE)/haproxy-kubernetes-ingress-default-backend
3029
- --configmap=$(POD_NAMESPACE)/haproxy-kubernetes-ingress
3130
- --configmap-tcp-services=$(POD_NAMESPACE)/haproxy-kubernetes-ingress-tcp
3231
- --configmap-errorfiles=$(POD_NAMESPACE)/errorfiles

deploy/tests/create.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ kind load docker-image haproxytech/http-echo:latest --name=$clustername
3737

3838
echo "deploying Ingress Controller ..."
3939
kubectl apply -f $DIR/config/0.namespace.yaml
40-
kubectl apply -f $DIR/config/1.default-backend.yaml
41-
kubectl apply -f $DIR/config/2.rbac.yaml
42-
kubectl apply -f $DIR/config/3.configmap.yaml
43-
kubectl apply -f $DIR/config/4.ingress-controller.yaml
40+
kubectl apply -f $DIR/config/1.rbac.yaml
41+
kubectl apply -f $DIR/config/2.configmap.yaml
42+
kubectl apply -f $DIR/config/3.ingress-controller.yaml
4443

4544
echo "wait --for=condition=ready ..."
4645
COUNTER=0

documentation/controller.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ args:
204204
### `--default-backend-service`
205205

206206
The name of the Kubernetes service to send requests to when no Ingress rules match.
207+
By default, it uses the builtin HTTP backend.
207208

208209
Possible values:
209210

documentation/doc.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ image_arguments:
120120
args:
121121
- --configmap-patternfiles=default/acl-patterns
122122
- argument: --default-backend-service
123-
description: The name of the Kubernetes service to send requests to when no Ingress rules match.
123+
description: |-
124+
The name of the Kubernetes service to send requests to when no Ingress rules match.
125+
By default, it uses the builtin HTTP backend.
124126
values:
125127
- The name of the backend service
126128
version_min: "1.4"

0 commit comments

Comments
 (0)