74 lines
1.5 KiB
YAML
74 lines
1.5 KiB
YAML
apiVersion: v1
|
|
items:
|
|
- apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
annotations:
|
|
kompose.service.type: nodeport
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: mysql
|
|
name: mysql
|
|
spec:
|
|
ports:
|
|
- name: "3306"
|
|
port: 3306
|
|
targetPort: 3306
|
|
selector:
|
|
io.kompose.service: mysql
|
|
type: NodePort
|
|
status:
|
|
loadBalancer: {}
|
|
- apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.service.type: nodeport
|
|
creationTimestamp: null
|
|
name: mysql
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: mysql
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: ALLOW_EMPTY_PASSWORD
|
|
value: "yes"
|
|
image: bitnami/mysql:latest
|
|
name: mysql
|
|
ports:
|
|
- containerPort: 3306
|
|
resources: {}
|
|
volumeMounts:
|
|
- mountPath: /bitnami/mysql
|
|
name: mysql-mysql-data
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: mysql-mysql-data
|
|
persistentVolumeClaim:
|
|
claimName: mysql-mysql-data
|
|
status: {}
|
|
- apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: mysql-mysql-data
|
|
name: mysql-mysql-data
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 100Mi
|
|
status: {}
|
|
kind: List
|
|
metadata: {}
|
|
|