apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-status
  labels:
    app: nginx-status
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx-status
  template:
    metadata:
      labels:
        app: nginx-status
    spec:
      containers:
      - name: nginx-status
        image: doubllew/public1:nginx_status-v0.0.1
        ports:
        - containerPort: 8088
          name: http
      - name: nginx-exporter
        image: nginx/nginx-prometheus-exporter:0.6.0
        args: ['-nginx.scrape-uri', 'http://127.0.0.1:8088/basic_status']
        ports:
          - containerPort: 9113
            name: metrics
