...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets/monitoring_v1beta1_monitoringuptimecheckconfig.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets

     1label: Config Connector MonitoringUptimeCheckConfig
     2markdownDescription: Creates yaml for a MonitoringUptimeCheckConfig resource
     3insertText: |
     4  apiVersion: monitoring.cnrm.cloud.google.com/v1beta1
     5  kind: MonitoringUptimeCheckConfig
     6  metadata:
     7    name: \${1:monitoringuptimecheckconfig-name}
     8  spec:
     9    projectRef:
    10      external: \${2:projects/[PROJECT_ID?]}
    11    displayName: \${3:A sample http uptime check config}
    12    period: \${4:60s}
    13    timeout: \${5:30s}
    14    contentMatchers:
    15    - content: \${6:.*}
    16      matcher: \${7:MATCHES_REGEX}
    17    selectedRegions:
    18    - \${8:USA}
    19    monitoredResource:
    20      type: \${9:uptime_url}
    21      filterLabels:
    22        host: \${10:192.168.1.1}
    23        project_id: \${11:[PROJECT_ID?]}
    24    httpCheck:
    25      requestMethod: \${12:POST}
    26      useSsl: \${13:true}
    27      path: \${14:/main}
    28      port: \${15:80}
    29      authInfo:
    30        username: \${16:test}
    31        password:
    32          valueFrom:
    33            secretKeyRef:
    34              name: \${17:monitoringuptimecheckconfig-dep}
    35              key: \${18:password}
    36      maskHeaders: \${19:true}
    37      headers:
    38        header-one: \${20:value-one}
    39      contentType: \${21:URL_ENCODED}
    40      validateSsl: \${22:false}
    41      body: \${23:c3RyaW5nCg==}

View as plain text