apiVersion: apps/v1
kind: Deployment
metadata:
  name: devops-deployment
  labels:
    app: devops
spec:
  replicas: 3
  selector:
    matchLabels:
      app: devops
  template:
    metadata:
      labels:
        app: devops
    spec:
      containers:
      - name: devopsimage
        image: 0548964d2bcf/devopsimage:latest
        ports:
        - containerPort: 5000
        env:
        - name: some_pass
          valueFrom:
            secretKeyRef:
              name: credentials
              key: password