Skip to content

Instantly share code, notes, and snippets.

@d-nishi
Last active September 27, 2018 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d-nishi/8ad5be397c4a517c45c5e498c75997ed to your computer and use it in GitHub Desktop.
Save d-nishi/8ad5be397c4a517c45c5e498c75997ed to your computer and use it in GitHub Desktop.
TLS Secret and Ingress
apiVersion: v1
data:
tls.crt: base64 encoded cert
tls.key: base64 encoded key
kind: Secret
metadata:
name: testsecret
namespace: default
type: Opaque
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: no-rules-map
spec:
tls:
- secretName: testsecret
backend:
serviceName: s1
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment