apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80
      - name: edgecase
        image: nginx-image:1.7.9
      - name: untagged
        image: mysql 
      - name: untaggedonacr
        image: myacr.azurecr.io/myimage 
      - name: untaggedwithcomment
        image: myimagewithcomment # this is a comment
      - image: imagewithhyphen # this is a comment
        name: imagewithhyphen
      - name: untaggedinsamefoldera
        image: myacr.azurecr.io/folder/image-a
      - name: untaggedinsamefolderb
        image: myacr.azurecr.io/folder/image-b
      imagePullSecrets:
      - name: key1
      initContainers:
      - name: nginx-init-container
        image: nginx-init:0.1.0
