<p>I have deployed MySQL using this YAML file.</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: mysqlsb
  labels:
    app: dataenv
spec:
  ports:
    - port: 3306
  selector:
    app: dataenv
    tier: mysql
  clusterIP: None
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: mysql-pv-claim
  labels:
    app: dataenv
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 20Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: dataenv-mysql
  labels:
    app: dataenv
spec:
  selector:
    matchLabels:
      app: dataenv
      tier: mysql
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: dataenv
        tier: mysql
    spec:
      containers:
      - image: mysql:5.6
        name: mysql
        env:
        - name: MYSQL_ROOT_PASSWORD
          valueFrom:
            secretKeyRef:
              name: mysql-pass
              key: password
        ports:
        - containerPort: 3306
          name: mysql
        volumeMounts:
        - name: mysql-persistent-storage
          mountPath: /var/lib/mysql
      volumes:
      - name: mysql-persistent-storage
        persistentVolumeClaim:
          claimName: mysql-pv-claim
</code></pre>
<p>The instance is running and I can create tables via command line.</p>
<p>How do I deploy phpMyAdmin to manage this pod?</p>

user2835586
<p>You can use port forwarding</p>
<p>kubectl port-forward service/<code>&lt;&lt;svcname&gt;&gt;</code> 3306:3306</p>
<p>based on your service name:</p>
<pre><code>kubectl port-forward service/mysqlsb 3306:3306
</code></pre>
<p>Then you can access it from your desktop (via phpmyadmin or any other GUI) using servername as <code>localhost</code> and port <code>3306</code></p>
