<commit_before>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: monasca-health
  namespace: monasca
  labels:
    system: openstack
    service: monitoring
    component: monasca-health
  annotations:
    kubernetes.io/change-cause: {{.Values.cluster_deployment_reason}}

spec:
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 0
      maxSurge: 2
  template:
    metadata:
      annotations:
        checksum/monasca-templates-monasca-health-etc-configmap.yaml: {{ include "monasca/templates/monasca-health-etc-configmap.yaml" . | sha256sum }}
        checksum/monasca-templates-monasca-health-bin-configmap.yaml: {{ include "monasca/templates/monasca-health-bin-configmap.yaml" . | sha256sum }}
        pod.alpha.kubernetes.io/init-containers: '[
          {
            "name": "init",
            "image": "{{.Values.docker_repo}}/monasca-health:{{.Values.image_version_monasca_health}}",
            "imagePullPolicy": "IfNotPresent",
            "command": ["/usr/local/bin/dumb-init"],
            "args": ["/init-container.sh"],
            "volumeMounts": [
              {
                "name": "checks",
                "mountPath": "/checks"
              }
            ]
          }
        ]'
      labels:
        component: monasca-health
    spec:
      nodeSelector:
        zone: farm
      volumes:
        - name: monasca-bin
          configMap:
            name: monasca-health-bin
        - name: monasca-etc
          configMap:
            name: monasca-health-etc
        - name: checks
          emptyDir:
            medium: "Memory"
      containers:
        - name: monasca-health
          image: {{.Values.docker_repo}}/monasca-health:{{.Values.image_version_monasca_health}}
          imagePullPolicy: IfNotPresent
          command:
            - /usr/local/bin/dumb-init
          args:
            - /usr/local/bin/kubernetes-entrypoint
          env:
            - name: COMMAND
              value: "/bin/bash /monasca-bin/health-start"
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
#          command:
#            - /bin/bash
#          args:
#            - -c
#            - "while true; do sleep 10000; done"
          volumeMounts:
            - mountPath: /monasca-bin
              name: monasca-bin
            - mountPath: /monasca-etc
              name: monasca-etc
            - mountPath: /checks
              name: checks
        - name: canary
          image: {{.Values.docker_repo}}/wildcard-exporter:v201611171311
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 9102
          args:
            - -web.listen-address=0.0.0.0:9102
            - -namespace=canary
            - checks/canary/*
          volumeMounts:
            - mountPath: /checks
              name: checks
          env:
            - name: SWIFT_AUTH_URL
              value: "{{.Values.canary_swift_auth_url}}"
            - name: SWIFT_USER
              value: "{{.Values.canary_swift_user}}"
            - name: SWIFT_USER_DOMAIN
              value: "{{.Values.canary_swift_user_domain}}"
            - name: SWIFT_PROJECT_NAME
              value: "{{.Values.canary_swift_project_name}}"
            - name: SWIFT_PROJECT_ID
              value: "{{.Values.canary_swift_project_id}}"
            - name: SWIFT_PROJECT_DOMAIN
              value: "{{.Values.canary_swift_project_domain}}"
            - name: SWIFT_REGION_NAME
              value: "{{.Values.canary_swift_region_name}}"
            - name: SWIFT_API_KEY
              value: "{{.Values.canary_swift_api_key}}"<commit_msg>prepare to get rid of the prometheus exporter - we use statsd now<commit_after>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: monasca-health
  namespace: monasca
  labels:
    system: openstack
    service: monitoring
    component: monasca-health
  annotations:
    kubernetes.io/change-cause: {{.Values.cluster_deployment_reason}}

spec:
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 0
      maxSurge: 2
  template:
    metadata:
      annotations:
        checksum/monasca-templates-monasca-health-etc-configmap.yaml: {{ include "monasca/templates/monasca-health-etc-configmap.yaml" . | sha256sum }}
        checksum/monasca-templates-monasca-health-bin-configmap.yaml: {{ include "monasca/templates/monasca-health-bin-configmap.yaml" . | sha256sum }}
#        pod.alpha.kubernetes.io/init-containers: '[
#          {
#            "name": "init",
#            "image": "{{.Values.docker_repo}}/monasca-health:{{.Values.image_version_monasca_health}}",
#            "imagePullPolicy": "IfNotPresent",
#            "command": ["/usr/local/bin/dumb-init"],
#            "args": ["/init-container.sh"],
#            "volumeMounts": [
#              {
#                "name": "checks",
#                "mountPath": "/checks"
#              }
#            ]
#          }
#        ]'
      labels:
        component: monasca-health
    spec:
      nodeSelector:
        zone: farm
      volumes:
        - name: monasca-bin
          configMap:
            name: monasca-health-bin
        - name: monasca-etc
          configMap:
            name: monasca-health-etc
#        - name: checks
#          emptyDir:
#            medium: "Memory"
      containers:
        - name: monasca-health
          image: {{.Values.docker_repo}}/monasca-health:{{.Values.image_version_monasca_health}}
          imagePullPolicy: IfNotPresent
          command:
            - /usr/local/bin/dumb-init
          args:
            - /usr/local/bin/kubernetes-entrypoint
          env:
            - name: COMMAND
              value: "/bin/bash /monasca-bin/health-start"
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
#          command:
#            - /bin/bash
#          args:
#            - -c
#            - "while true; do sleep 10000; done"
          volumeMounts:
            - mountPath: /monasca-bin
              name: monasca-bin
            - mountPath: /monasca-etc
              name: monasca-etc
#            - mountPath: /checks
#              name: checks
#        - name: canary
#          image: {{.Values.docker_repo}}/wildcard-exporter:v201611171311
#          imagePullPolicy: IfNotPresent
#          ports:
#            - containerPort: 9102
#          args:
#            - -web.listen-address=0.0.0.0:9102
#            - -namespace=canary
#            - checks/canary/*
#          volumeMounts:
#            - mountPath: /checks
#              name: checks
#          env:
#            - name: SWIFT_AUTH_URL
#              value: "{{.Values.canary_swift_auth_url}}"
#            - name: SWIFT_USER
#              value: "{{.Values.canary_swift_user}}"
#            - name: SWIFT_USER_DOMAIN
#              value: "{{.Values.canary_swift_user_domain}}"
#            - name: SWIFT_PROJECT_NAME
#              value: "{{.Values.canary_swift_project_name}}"
#            - name: SWIFT_PROJECT_ID
#              value: "{{.Values.canary_swift_project_id}}"
#            - name: SWIFT_PROJECT_DOMAIN
#              value: "{{.Values.canary_swift_project_domain}}"
#            - name: SWIFT_REGION_NAME
#              value: "{{.Values.canary_swift_region_name}}"
#            - name: SWIFT_API_KEY
#              value: "{{.Values.canary_swift_api_key}}"
{'fraction_non_alphanumeric': 0.11562541627814041, 'fraction_numerical': 0.010656720394298654, 'mean_word_length': 1.6160278745644598, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3224905', 'n_tokens_mistral': 2376, 'n_tokens_neox': 2260, 'n_words': 364}