How to use nginx-ingress-controller with Docker for Mac

Define this ingress

ingress.yaml



apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: backend-for-frontend-ing
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
  defaultBackend:
    service:
      name: bff-svc
      port:
        number: 3000
$ kubectl apply -f ingress.yaml

I can't access it even if I run it ...

Solutions

It seems that nginx-ingress-controller is not installed on Docker For Mac.

You can use it safely by executing the following command.

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.43.0/deploy/static/provider/cloud/deploy.yaml

Let's take a look at the primary resources.

It was a memorandum.

reference

https://kubernetes.github.io/ingress-nginx/deploy/#docker-for-mac

Recommended Posts

How to use nginx-ingress-controller with Docker for Mac
How to make Laravel faster with Docker for Mac
[Rails] How to use rails console with docker
How to use mysql with M1 mac Docker preview version
[For those who create portfolios] How to use binding.pry with Docker
How to use docker compose with NVIDIA Jetson
How to build docker environment with Gradle for intelliJ
How to install JMeter for Mac
How to use mssql-tools with alpine
[Artifactory] How to use Docker repository
How to start Camunda with Docker
How to quit Docker for Mac and build a Docker development environment with Ubuntu + Vagrant
How to share files with Docker Toolbox
How to use binding.pry for view files
How to install Play Framework 2.6 for Mac
How to use BootStrap with Play Framework
Install Docker Desktop for Mac with Homebrew
Getting Started with Docker for Mac (Installation)
How to use Docker in VSCode DevContainer
[Ruby] How to use slice for beginners
Understand in 5 minutes !! How to use Docker
How to run Blazor (C #) with Docker
How to build Rails 6 environment with Docker
How to use \ t Escape sequences different for mac and Windows-java
How to use Map
How to use rbenv
How to use MyBatis2 (iBatis) with Spring Boot 1.4 (Spring 4)
How to use letter_opener_web
How to use with_option
How to use fields_for
How to use java.util.logging
How to use built-in h2db with spring boot
How to use map
How to use an array for HashMap keys
How to use collection_select
Use Puphpeteer with Docker
How to use Java framework with AWS Lambda! ??
How to use active_hash! !!
How to use MapStruct
How to use hidden_field_tag
How to use TreeSet
How to use Java API with lambda expression
[How to use label]
How to use identity
[Docker for Mac] Deal with Credentials store error
Use ngrok with Docker
How to give your image to someone with docker
How to use JUnit 5
How to use nfs protocol version 2 with ubuntu 18.04
[Rails] How to use Gem'rails-i18n' for Japanese support
[Rails] How to build an environment with Docker
How to use Dozer.mapper
How to use Gradle
[For super beginners] How to use autofocus: true
How to use org.immutables
How to use java.util.stream.Collector
How to use VisualVM
How to use Map
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
How to build Docker + Springboot app (for basic learning)
How to use an array for a TreeMap key