-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9ac62f
commit e95e044
Showing
4 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
23
contents/local-cluster/kind/cluster-with-port-mapping.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |