Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamasato committed Sep 24, 2023
1 parent c9ac62f commit e95e044
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contents/local-cluster/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Local Kubernetes

- Docker for Mac
- Minikube
- [Minikube](minikube)
- [kind](kind)
23 changes: 23 additions & 0 deletions contents/local-cluster/kind/cluster-with-port-mapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
# port forward 80 on the host to 80 on this node
extraPortMappings:
- containerPort: 80
hostPort: 80
# optional: set the bind address on the host
# 0.0.0.0 is the current default
listenAddress: "127.0.0.1"
# optional: set the protocol to one of TCP, UDP, SCTP.
# TCP is the default
protocol: TCP
- containerPort: 443
hostPort: 443
# optional: set the bind address on the host
# 0.0.0.0 is the current default
listenAddress: "127.0.0.1"
# optional: set the protocol to one of TCP, UDP, SCTP.
# TCP is the default
protocol: TCP
# from https://kind.sigs.k8s.io/docs/user/configuration/#extra-port-mappings
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions contents/local-cluster/minikube/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# [Minikube](https://minikube.sigs.k8s.io/docs/)

## [Install](https://minikube.sigs.k8s.io/docs/start/)


```
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64
sudo install minikube-darwin-amd64 /usr/local/bin/minikube
```

## Start

```
minikube start
```

0 comments on commit e95e044

Please sign in to comment.