apiVersion: v1
kind: Pod
metadata:
  name: nginx
  namespace: default
spec:
  tolerations:
    - key: node-role.kubernetes.io/master
      operator: Exists
  containers:
  - name: nginx
    image: ubuntu/16.04
    imagePullPolicy: Always
    resources: {}
    ports:
    - containerPort: 80
      hostPort: 80
      protocol: TCP
    - containerPort: 443
      hostPort: 443
      protocol: TCP
    env:
      - name: user-data
        value: |
          #cloud-config
          packages:
            - nginx