Skip to content

Instantly share code, notes, and snippets.

@chrisedrego
Last active October 26, 2020 07:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chrisedrego/f71cb61604d600b3e8b1b1bd551cda26 to your computer and use it in GitHub Desktop.
Save chrisedrego/f71cb61604d600b3e8b1b1bd551cda26 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