Last active
October 26, 2020 07:33
-
-
Save chrisedrego/f71cb61604d600b3e8b1b1bd551cda26 to your computer and use it in GitHub Desktop.
Ingress defintion for mysql
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
ingress.kubernetes.io/force-ssl-redirect: "true" | |
nginx.ingress.kubernetes.io/server-alias: mysql.<YOUR_DOMAIN>.com | |
labels: | |
app: mysql | |
name: mysql | |
namespace: mysql | |
spec: | |
rules: | |
- host: mysql.<YOUR_DOMAIN>.com | |
http: | |
paths: | |
- backend: | |
serviceName: mysql-service | |
servicePort: 3306 | |
path: / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment