Skip to content

Commit

Permalink
Remove ingress-nginx default backend
Browse files Browse the repository at this point in the history
It's not needed since nginx 0.20.0.

See the following pull-requests for context:
* kubernetes/ingress-nginx#3126
* kubernetes/ingress-nginx#3156
  • Loading branch information
reegnz authored and medyagh committed Aug 1, 2019
1 parent 2614069 commit de27472
Show file tree
Hide file tree
Showing 5 changed files with 445 additions and 89 deletions.
46 changes: 0 additions & 46 deletions deploy/addons/ingress/ingress-dp.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,51 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: default-http-backend
namespace: kube-system
labels:
app.kubernetes.io/name: default-http-backend
app.kubernetes.io/part-of: kube-system
addonmanager.kubernetes.io/mode: Reconcile
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: default-http-backend
addonmanager.kubernetes.io/mode: Reconcile
template:
metadata:
labels:
app.kubernetes.io/name: default-http-backend
addonmanager.kubernetes.io/mode: Reconcile
spec:
terminationGracePeriodSeconds: 60
containers:
- name: default-http-backend
# Any image is permissible as long as:
# 1. It serves a 404 page at /
# 2. It serves 200 on a /healthz endpoint
image: {{default "gcr.io/google_containers" .ImageRepository}}/defaultbackend{{.ExoticArch}}:1.4
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthz
port: 8080
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
ports:
- containerPort: 8080
resources:
limits:
cpu: 20m
memory: 30Mi
requests:
cpu: 20m
memory: 30Mi
---
apiVersion: extensions/v1beta1
kind: Deployment
Expand Down Expand Up @@ -121,7 +76,6 @@ spec:
hostPort: 18080
args:
- /nginx-ingress-controller
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend
- --configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
Expand Down
33 changes: 0 additions & 33 deletions deploy/addons/ingress/ingress-svc.yaml.tmpl

This file was deleted.

6 changes: 0 additions & 6 deletions pkg/minikube/assets/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,6 @@ var Addons = map[string]*Addon{
"ingress-dp.yaml",
"0640",
true),
MustBinAsset(
"deploy/addons/ingress/ingress-svc.yaml.tmpl",
constants.AddonsPath,
"ingress-svc.yaml",
"0640",
false),
}, false, "ingress"),
"metrics-server": NewAddon([]*BinAsset{
MustBinAsset(
Expand Down
4 changes: 0 additions & 4 deletions test/integration/fn_addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ func testIngressController(t *testing.T) {
t.Fatalf("Failed waiting for ingress-controller to be up: %v", err)
}

if err := util.WaitForIngressDefaultBackendRunning(t, p); err != nil {
t.Fatalf("Failed waiting for default-http-backend to be up: %v", err)
}

ingressPath := filepath.Join(*testdataDir, "nginx-ing.yaml")
if _, err := kr.RunCommand([]string{"create", "-f", ingressPath}); err != nil {
t.Fatalf("Failed creating nginx ingress resource: %v", err)
Expand Down
Loading

0 comments on commit de27472

Please sign in to comment.