apiVersion: v1
kind: Pod
metadata: 
  name: webserver
spec:
  volumes:
  - name: nginx-conf
    configMap:
      name: nginx-conf
      items:
      - key: default.conf
        path: default.conf
  containers:
  - name: webserver
    image: nginx
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        memory: 100Mi
        cpu: 50m
    ports:
    - containerPort: 80
    volumeMounts:
    - mountPath: /etc/nginx/conf.d
      name: nginx-conf
      readOnly: true
  - name: adapter
    image: nginx/nginx-prometheus-exporter:0.4.2
    imagePullPolicy: IfNotPresent
    args: ["-nginx.scrape-uri","http://localhost/nginx_status"]
    ports:
    - containerPort: 9113
    resources:
      limits:
        memory: 100Mi
        cpu: 50m
