apiVersion: apps/v1
kind: Deployment
metadata:
  name: alias-test
spec:
  selector:
    matchLabels:
      foo: bar
  replicas: 1
  template:
    metadata:
      name: foo
      labels:
        foo: bar
    spec:
      containers:
        - name: nginx
          image: nginx:1.14
