-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use privateCA for Rancher on dev environment
Signed-off-by: Andrea Mazzotti <[email protected]>
- Loading branch information
1 parent
08f6cda
commit 12f522e
Showing
3 changed files
with
109 additions
and
2 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
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,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: cattle-system |
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,46 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: tls-ca | ||
namespace: cattle-system | ||
spec: | ||
commonName: elemental-selfsigned-ca | ||
duration: 94800h | ||
isCA: true | ||
issuerRef: | ||
kind: Issuer | ||
name: elemental-selfsigned | ||
renewBefore: 360h | ||
secretName: tls-ca | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: tls-rancher-ingress | ||
namespace: cattle-system | ||
spec: | ||
dnsNames: | ||
- 172.18.0.2.sslip.io | ||
duration: 9480h | ||
issuerRef: | ||
kind: Issuer | ||
name: elemental-ca | ||
renewBefore: 360h | ||
secretName: tls-rancher-ingress | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: elemental-ca | ||
namespace: cattle-system | ||
spec: | ||
ca: | ||
secretName: tls-ca | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: elemental-selfsigned | ||
namespace: cattle-system | ||
spec: | ||
selfSigned: {} |