Last active
March 16, 2020 10:25
-
-
Save daohoangson/f9e3f1e60310666bdf304d70cc262cfd to your computer and use it in GitHub Desktop.
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: phpinfo | |
namespace: phpinfo | |
annotations: | |
certmanager.k8s.io/issuer: letsencrypt | |
kubernetes.io/tls-acme: 'true' | |
spec: | |
tls: | |
- hosts: | |
- phpinfo.domain.com | |
secretName: tls | |
rules: | |
- host: phpinfo.domain.com | |
http: | |
paths: | |
- backend: | |
serviceName: phpinfo | |
servicePort: 80 |
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: Issuer | |
metadata: | |
name: letsencrypt | |
namespace: phpinfo | |
spec: | |
acme: | |
server: https://acme-v02.api.letsencrypt.org/directory | |
email: [email protected] | |
privateKeySecretRef: | |
name: letsencrypt | |
http01: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment