---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: myweb
  name: capstone
spec:
  replicas: 1
  selector:
    matchLabels:
      app: capstone
  template:
    metadata:
      labels:
        app: capstone
    spec:
      containers:
        - image: sachinkumar2507/capstone:1.01
          name: myweb
          ports:
            - containerPort: 8081
          env:
          - name: SQL_URL
            value: mysql-0.sql-headless.default.svc.cluster.local
          - name: SQL_PORT
            value: "3306"
          - name: SQL_USR
            value: "root"
          - name: SQL_PW
            value: "sachin@123"
          - name: SQL_TABLE
            value: "student"
