Skip to content

Instantly share code, notes, and snippets.

@larrycai
Forked from chrisedrego/mysql-ingress.yaml
Created October 26, 2020 07:33
Show Gist options
  • Save larrycai/dbbfea895865a0ae6a97c2ccfe95fbe5 to your computer and use it in GitHub Desktop.
Save larrycai/dbbfea895865a0ae6a97c2ccfe95fbe5 to your computer and use it in GitHub Desktop.
Ingress defintion for mysql
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