Skip to content

Instantly share code, notes, and snippets.

@yokawasa
Created April 25, 2018 00:57
Show Gist options
  • Save yokawasa/c296be9321e4c527420a35c720cf27e0 to your computer and use it in GitHub Desktop.
Save yokawasa/c296be9321e4c527420a35c720cf27e0 to your computer and use it in GitHub Desktop.
Kubernetes YAML file for sample deployment of application that leverage Open Service Broker for MySQL PaaS on Azure
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sample-osba-mysql
spec:
replicas: 1
template:
metadata:
labels:
app: sample-osba-mysql
spec:
containers:
- name: osba-mysql-demo
image: yoichikawasaki/sample-osba-mysql:0.0.1
ports:
- containerPort: 80
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: username
name: example-mysql-secret
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: example-mysql-secret
- name: MYSQL_HOST
valueFrom:
secretKeyRef:
key: host
name: example-mysql-secret
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
key: database
name: example-mysql-secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment