<commit_before>{{ range $lg, $lg_config := .Values.looking_glass -}}
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ $.Values.global.region }}-pxrs-{{ $lg }}
  namespace: px
  labels:
    app: {{ $.Values.global.region }}-pxrs-{{ $lg }}
spec:
  replicas: 1
  selector:
    matchLabels:
      app: {{ $.Values.global.region }}-pxrs-{{ $lg }}
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  template:
    metadata:
      labels:
        alert-tier: px
        alert-service: px
        app: {{ $.Values.global.region }}-pxrs-{{ $lg }}
    spec:
      tolerations:
      - key: species
        operator: Equal
        value: px
        effect: NoSchedule
      containers:
      - name: {{ $.Values.global.region }}-pxrs-{{ $lg }}
        image: keppel.{{ $.Values.registry }}.cloud.sap/{{ $.Values.lg_image }}
        imagePullPolicy: Always
        volumeMounts:
        - name: vol-{{ $.Values.global.region }}-pxrs-{{ $lg }}
          mountPath: /etc/bird-lg
        - name: vol-{{ $.Values.global.region }}-pxrs-lg-communities
          mountPath: /etc/bird-lg-communities
        command: ["python3"]
{{- if $lg_config.privileged }}
        args: ["lg.py", "{{ $.Values.global.region }}-pxrs-{{ $lg }}.cfg", "priv"]
{{- else }}
        args: ["lg.py", "{{ $.Values.global.region }}-pxrs-{{ $lg }}.cfg"]
{{- end }}
        ports:
        - containerPort: 80<commit_msg>[px/lg] Remove tolerations for looking glas<commit_after>{{ range $lg, $lg_config := .Values.looking_glass -}}
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ $.Values.global.region }}-pxrs-{{ $lg }}
  namespace: px
  labels:
    app: {{ $.Values.global.region }}-pxrs-{{ $lg }}
spec:
  replicas: 1
  selector:
    matchLabels:
      app: {{ $.Values.global.region }}-pxrs-{{ $lg }}
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  template:
    metadata:
      labels:
        alert-tier: px
        alert-service: px
        app: {{ $.Values.global.region }}-pxrs-{{ $lg }}
    spec:
      containers:
      - name: {{ $.Values.global.region }}-pxrs-{{ $lg }}
        image: keppel.{{ $.Values.registry }}.cloud.sap/{{ $.Values.lg_image }}
        imagePullPolicy: Always
        volumeMounts:
        - name: vol-{{ $.Values.global.region }}-pxrs-{{ $lg }}
          mountPath: /etc/bird-lg
        - name: vol-{{ $.Values.global.region }}-pxrs-lg-communities
          mountPath: /etc/bird-lg-communities
        command: ["python3"]
{{- if $lg_config.privileged }}
        args: ["lg.py", "{{ $.Values.global.region }}-pxrs-{{ $lg }}.cfg", "priv"]
{{- else }}
        args: ["lg.py", "{{ $.Values.global.region }}-pxrs-{{ $lg }}.cfg"]
{{- end }}
        ports:
        - containerPort: 80
{'fraction_non_alphanumeric': 0.19155030433225922, 'fraction_numerical': 0.005012531328320802, 'mean_word_length': 2.2263279445727484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '6516761', 'n_tokens_mistral': 956, 'n_tokens_neox': 949, 'n_words': 209}