<commit_before># Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


apiVersion: apps/v1
kind: Deployment
metadata:
  name: loadgenerator
spec:
  replicas: 1
  selector:
    matchLabels:
      app: loadgenerator
      mode: master
  template:
    metadata:
      labels:
        app: loadgenerator
        mode: master
    spec:
      containers:
        - name: locust-main
          image: gcr.io/stackdriver-sandbox-230822/sandbox/loadgenerator/gke:latest
          imagePullPolicy: Always
          env:
            - name: LOCUST_MODE
              value: standalone
            - name: LOCUST_TASK
              value: basic
            - name: TARGET_HOST
              valueFrom:
                configMapKeyRef:
                  name: address-config
                  key: FRONTEND_ADDR
          ports:
            - name: loc-master-web
              containerPort: 8089
              protocol: TCP
            - name: loc-master-api
              containerPort: 8090<commit_msg>chore: update loadgen image for now<commit_after># Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: loadgenerator
spec:
  replicas: 1
  selector:
    matchLabels:
      app: loadgenerator
      mode: master
  template:
    metadata:
      labels:
        app: loadgenerator
        mode: master
    spec:
      containers:
        - name: locust-main
          # TODO(tugan): update the image back after testing using cloud shell
          # image: gcr.io/stackdriver-sandbox-230822/sandbox/loadgenerator/gke:latest
          image: tugan0329/cloud-ops-loadgen:latest
          imagePullPolicy: Always
          env:
            - name: LOCUST_MODE
              value: standalone
            - name: LOCUST_TASK
              value: basic
            - name: TARGET_HOST
              valueFrom:
                configMapKeyRef:
                  name: address-config
                  key: FRONTEND_ADDR
          ports:
            - name: loc-master-web
              containerPort: 8089
              protocol: TCP
            - name: loc-master-api
              containerPort: 8090
{'fraction_non_alphanumeric': 0.06482630272952854, 'fraction_numerical': 0.016129032258064516, 'mean_word_length': 2.05977229601518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6635191', 'n_tokens_mistral': 878, 'n_tokens_neox': 828, 'n_words': 306}