apiVersion: apps/v1
kind: Deployment
metadata:
  name: first-nginx
  namespace: apply-depends-on
spec:
  replicas: 2
  selector:
    matchLabels:
      app: first-nginx
  template:
    metadata:
      labels:
        app: first-nginx
    spec:
      containers:
        - name: nginx
          image: nginx:1.14.2
          ports:
            - containerPort: 80
      initContainers:
        - name: init
          image: busybox:1.28
          command: ['sh', '-c', 'sleep 10']