This file contains hidden or 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
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: kuard-deployment | |
labels: | |
app: kuard | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: |
This file contains hidden or 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
# Install nginx-ingress | |
helm install \ | |
- name nginx-ingress \ | |
- set rbac.create=false \ | |
- set rbac.createRole=false \ | |
- set rbac.createClusterRole=false \ | |
stable/nginx-ingress | |
# Install cert-manager and set default issuer and kind. | |
helm install \ |
This file contains hidden or 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
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: cloudflare | |
namespace: kube-system | |
data: | |
api: MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw |
This file contains hidden or 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
apiVersion: certmanager.k8s.io/v1alpha1 | |
kind: ClusterIssuer | |
metadata: | |
name: letsencrypt-prod | |
spec: | |
acme: | |
# The ACME server URL | |
server: https://acme-v01.api.letsencrypt.org/directory | |
# Email address used for ACME registration | |
email: [email protected] |
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: kuard | |
annotations: | |
kubernetes.io/tls-acme: "true" | |
kubernetes.io/ingress.class: nginx | |
certmanager.k8s.io/acme-challenge-type: dns01 | |
certmanager.k8s.io/acme-dns01-provider: cloudflare | |
spec: |
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: kuard | |
namespace: default | |
spec: | |
rules: | |
- host: kuard.labs.example.com | |
http: | |
paths: |
This file contains hidden or 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
imageTag: 1.6.2 | |
ssl: | |
enabled: true | |
dashboard: | |
enabled: true | |
domain: traefik.example.com | |
kubernetes: | |
namespaces: | |
- default | |
- kube-system |