<commit_before>---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: kafka-broker
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: kafka
    spec:
      containers:
      - name: kafka
        image: docker.io/wurstmeister/kafka
        ports:
        - containerPort: 9092
        env:
        - name: KAFKA_ADVERTISED_HOST_NAME
          value: kafka-service
        - name: KAFKA_ZOOKEEPER_CONNECT
          value: zook:2181
        - name: KAFKA_BROKER_ID
          value: "1"
        - name: KAFKA_CREATE_TOPICS
          value: "empire-announce:1:1,deathstar-plans:1:1"
        - name: KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS
          value: "20000"
        - name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
          value: "20000"
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: zookeeper
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: zook
    spec:
      containers:
      - name: zookeeper
        image: docker.io/digitalwonderland/zookeeper
        ports:
        - containerPort: 2181
---
apiVersion: v1
kind: Service
metadata:
  name: zook
  labels:
    app: zook
spec:
  ports:
  - port: 2181
    name: zookeeper-port
    targetPort: 2181
    protocol: TCP
  selector:
    app: zook
---
apiVersion: v1
kind: Service
metadata:
  name: kafka-service
  labels:
    app: kafka
spec:
  ports:
  - port: 9092
    name: kafka-port
    targetPort: 9092
    protocol: TCP
  selector:
    app: kafka
  clusterIP: None
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: empire-hq
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: empire-hq
    spec:
      containers:
      - name: empire-hq
        image: docker.io/cilium/kafkaclient
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: empire-outpost-8888
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: empire-outpost
        outpostid: "8888"
    spec:
      containers:
      - name: empire-outpost-8888
        image: docker.io/cilium/kafkaclient
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: empire-outpost-9999
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: empire-outpost
        outpostid: "9999"
    spec:
      containers:
      - name: empire-outpost-9999
        image: docker.io/cilium/kafkaclient
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: empire-backup
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: empire-backup
    spec:
      containers:
      - name: empire-backup
        image: docker.io/cilium/kafkaclient
<commit_msg>docs: Change kafka image to point to a more stable tag 1.1.0 instead of latest<commit_after>---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: kafka-broker
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: kafka
    spec:
      containers:
      - name: kafka
        image: docker.io/wurstmeister/kafka:1.1.0
        ports:
        - containerPort: 9092
        env:
        - name: KAFKA_ADVERTISED_HOST_NAME
          value: kafka-service
        - name: KAFKA_ZOOKEEPER_CONNECT
          value: zook:2181
        - name: KAFKA_BROKER_ID
          value: "1"
        - name: KAFKA_CREATE_TOPICS
          value: "empire-announce:1:1,deathstar-plans:1:1"
        - name: KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS
          value: "20000"
        - name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
          value: "20000"
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: zookeeper
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: zook
    spec:
      containers:
      - name: zookeeper
        image: docker.io/digitalwonderland/zookeeper
        ports:
        - containerPort: 2181
---
apiVersion: v1
kind: Service
metadata:
  name: zook
  labels:
    app: zook
spec:
  ports:
  - port: 2181
    name: zookeeper-port
    targetPort: 2181
    protocol: TCP
  selector:
    app: zook
---
apiVersion: v1
kind: Service
metadata:
  name: kafka-service
  labels:
    app: kafka
spec:
  ports:
  - port: 9092
    name: kafka-port
    targetPort: 9092
    protocol: TCP
  selector:
    app: kafka
  clusterIP: None
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: empire-hq
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: empire-hq
    spec:
      containers:
      - name: empire-hq
        image: docker.io/cilium/kafkaclient
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: empire-outpost-8888
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: empire-outpost
        outpostid: "8888"
    spec:
      containers:
      - name: empire-outpost-8888
        image: docker.io/cilium/kafkaclient
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: empire-outpost-9999
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: empire-outpost
        outpostid: "9999"
    spec:
      containers:
      - name: empire-outpost-9999
        image: docker.io/cilium/kafkaclient
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: empire-backup
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: empire-backup
    spec:
      containers:
      - name: empire-backup
        image: docker.io/cilium/kafkaclient

{'fraction_non_alphanumeric': 0.08995002776235425, 'fraction_numerical': 0.03331482509716824, 'mean_word_length': 2.203319502074689, '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': '4615963', 'n_tokens_mistral': 2002, 'n_tokens_neox': 1888, 'n_words': 434}