nginx_ingress.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/auth-realm: Authentication Required
    nginx.ingress.kubernetes.io/auth-secret: victoria-metrics/basic-auth
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/service-weight: ''
  creationTimestamp: '2022-07-11T08:36:06Z'
  generation: 1
  managedFields:
    - apiVersion: networking.k8s.io/v1
      fieldsType: FieldsV1
      fieldsV1:
        'f:status':
          'f:loadBalancer':
            'f:ingress': {}
      manager: nginx-ingress-controller
      operation: Update
      subresource: status
      time: '2022-07-11T08:36:19Z'
    - apiVersion: networking.k8s.io/v1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:annotations':
            .: {}
            'f:nginx.ingress.kubernetes.io/auth-realm': {}
            'f:nginx.ingress.kubernetes.io/auth-secret': {}
            'f:nginx.ingress.kubernetes.io/auth-type': {}
            'f:nginx.ingress.kubernetes.io/service-weight': {}
        'f:spec':
          'f:rules': {}
      manager: ACK-Console Apache-HttpClient
      operation: Update
      time: '2022-07-14T03:05:30Z'
  name: alertmanager
  namespace: victoria-metrics
  resourceVersion: '31490749'
  uid: 5254b50e-e0f4-4153-9a5d-bc74dd9e33c2
spec:
  ingressClassName: nginx
  rules:
    - host: alertmanager.xx.xx.com
      http:
        paths:
          - backend:
              service:
                name: vmalert-alertmanager
                port:
                  number: 9093
            path: /
            pathType: ImplementationSpecific
status:
  loadBalancer:
    ingress:
      - ip: x.x.x.x

你可能感兴趣的:(VictoriaMetrics,nginx,运维)