Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1055 from heckj/quickstart-guide
Add quick-start guide for nginx ingress controller
- Loading branch information
Showing
16 changed files
with
847 additions
and
53 deletions.
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
/ingress-shim | ||
/hack/build/dockerfiles/cert-manager-*_*_* | ||
.vscode | ||
.venv | ||
bazel-* |
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
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
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ Development documentation | |
dns01-providers | ||
dco-sign-off | ||
release-process | ||
generate-docs |
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
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ cert-manager. | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
quick-start/index | ||
acme/index | ||
ca/index | ||
vault/index |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 4 additions & 5 deletions
9
...ls/quick-start/echoserver/deployment.yaml → ...rials/quick-start/example/deployment.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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: echoserver | ||
namespace: default | ||
name: kuard | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: echoserver | ||
app: kuard | ||
spec: | ||
containers: | ||
- image: gcr.io/google_containers/echoserver:1.0 | ||
- image: gcr.io/kuar-demo/kuard-amd64:1 | ||
imagePullPolicy: Always | ||
name: echoserver | ||
name: kuard | ||
ports: | ||
- containerPort: 8080 |
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,22 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: kuard | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
certmanager.k8s.io/issuer: "letsencrypt-prod" | ||
certmanager.k8s.io/acme-challenge-type: http01 | ||
|
||
spec: | ||
tls: | ||
- hosts: | ||
- example.example.com | ||
secretName: quickstart-example-tls | ||
rules: | ||
- host: example.example.com | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: kuard | ||
servicePort: 80 |
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,22 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: kuard | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
certmanager.k8s.io/issuer: "letsencrypt-staging" | ||
certmanager.k8s.io/acme-challenge-type: http01 | ||
|
||
spec: | ||
tls: | ||
- hosts: | ||
- example.example.com | ||
secretName: quickstart-example-tls | ||
rules: | ||
- host: example.example.com | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: kuard | ||
servicePort: 80 |
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,22 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: kuard | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
#certmanager.k8s.io/issuer: "letsencrypt-staging" | ||
#certmanager.k8s.io/acme-challenge-type: http01 | ||
|
||
spec: | ||
tls: | ||
- hosts: | ||
- example.example.com | ||
secretName: quickstart-example-tls | ||
rules: | ||
- host: example.example.com | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: kuard | ||
servicePort: 80 |
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 @@ | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: Issuer | ||
metadata: | ||
name: letsencrypt-prod | ||
spec: | ||
acme: | ||
# The ACME server URL | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
# Email address used for ACME registration | ||
email: user@example.com | ||
# Name of a secret used to store the ACME account private key | ||
privateKeySecretRef: | ||
name: letsencrypt-prod | ||
# Enable the HTTP-01 challenge provider | ||
http01: {} |
5 changes: 2 additions & 3 deletions
5
...rials/quick-start/echoserver/service.yaml → ...utorials/quick-start/example/service.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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: echoserver | ||
namespace: default | ||
name: kuard | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 8080 | ||
protocol: TCP | ||
selector: | ||
app: echoserver | ||
app: kuard |
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 @@ | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: Issuer | ||
metadata: | ||
name: letsencrypt-staging | ||
spec: | ||
acme: | ||
# The ACME server URL | ||
server: https://acme-staging-v02.api.letsencrypt.org/directory | ||
# Email address used for ACME registration | ||
email: user@example.com | ||
# Name of a secret used to store the ACME account private key | ||
privateKeySecretRef: | ||
name: letsencrypt-staging | ||
# Enable the HTTP-01 challenge provider | ||
http01: {} |
Oops, something went wrong.