github.com/cilium/cilium@v1.16.2/test/k8s/manifests/kafka-sw-app.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: kafka-broker
     5  spec:
     6    selector:
     7      matchLabels:
     8        app: kafka
     9        zgroup: kafkaTestApp
    10    replicas: 1
    11    template:
    12      metadata:
    13        labels:
    14          app: kafka
    15          zgroup: kafkaTestApp
    16      spec:
    17        terminationGracePeriodSeconds: 0
    18        containers:
    19        - name: kafka
    20          image: docker.io/cilium/kafkaproxy:1.0
    21          imagePullPolicy: IfNotPresent
    22          ports:
    23          - containerPort: 9092
    24          env:
    25          - name: ADVERTISED_HOST
    26            value: kafka-service
    27          - name: ADVERTISED_PORT
    28            value: "9092"
    29          - name: CONSUMER_THREADS
    30            value: "1"
    31          - name: ZK_CONNECT
    32            value: "zk.connect=localhost:2181/root/path"
    33          - name: GROUP_ID
    34            value: "groupid=test"
    35          - name: TOPICS
    36            value: "empire-announce,deathstar-plans,test-topic"
    37          livenessProbe:
    38            tcpSocket:
    39              port: 9092
    40            initialDelaySeconds: 30
    41            failureThreshold: 10
    42            periodSeconds: 10
    43          readinessProbe:
    44            tcpSocket:
    45              port: 9092
    46            initialDelaySeconds: 30
    47            periodSeconds: 5
    48  ---
    49  apiVersion: v1
    50  kind: Service
    51  metadata:
    52    name: kafka-service
    53    labels:
    54      app: kafka
    55  spec:
    56    ports:
    57    - port: 9092
    58      name: kafka-port
    59      targetPort: 9092
    60      protocol: TCP
    61    selector:
    62      app: kafka
    63    clusterIP: None
    64  ---
    65  apiVersion: apps/v1
    66  kind: Deployment
    67  metadata:
    68    name: empire-hq
    69  spec:
    70    selector:
    71      matchLabels:
    72        app: empire-hq
    73        zgroup: kafkaTestApp
    74    replicas: 1
    75    template:
    76      metadata:
    77        labels:
    78          app: empire-hq
    79          zgroup: kafkaTestApp
    80      spec:
    81        terminationGracePeriodSeconds: 0
    82        containers:
    83        - name: empire-hq
    84          image: docker.io/cilium/kafkaclient:1.0
    85          imagePullPolicy: IfNotPresent
    86        nodeSelector:
    87          "cilium.io/ci-node": k8s1
    88  
    89  ---
    90  apiVersion: apps/v1
    91  kind: Deployment
    92  metadata:
    93    name: empire-outpost-8888
    94  spec:
    95    selector:
    96      matchLabels:
    97        app: empire-outpost
    98        outpostid: "8888"
    99        zgroup: kafkaTestApp
   100    replicas: 1
   101    template:
   102      metadata:
   103        labels:
   104          app: empire-outpost
   105          outpostid: "8888"
   106          zgroup: kafkaTestApp
   107      spec:
   108        terminationGracePeriodSeconds: 0
   109        containers:
   110        - name: empire-outpost-8888
   111          image: docker.io/cilium/kafkaclient:1.0
   112          imagePullPolicy: IfNotPresent
   113  ---
   114  apiVersion: apps/v1
   115  kind: Deployment
   116  metadata:
   117    name: empire-outpost-9999
   118  spec:
   119    selector:
   120      matchLabels:
   121        app: empire-outpost
   122        outpostid: "9999"
   123        zgroup: kafkaTestApp
   124    replicas: 1
   125    template:
   126      metadata:
   127        labels:
   128          app: empire-outpost
   129          outpostid: "9999"
   130          zgroup: kafkaTestApp
   131      spec:
   132        terminationGracePeriodSeconds: 0
   133        containers:
   134        - name: empire-outpost-9999
   135          image: docker.io/cilium/kafkaclient:1.0
   136          imagePullPolicy: IfNotPresent
   137  ---
   138  apiVersion: apps/v1
   139  kind: Deployment
   140  metadata:
   141    name: empire-backup
   142  spec:
   143    selector:
   144      matchLabels:
   145        app: empire-backup
   146        zgroup: kafkaTestApp
   147    replicas: 1
   148    template:
   149      metadata:
   150        labels:
   151          app: empire-backup
   152          zgroup: kafkaTestApp
   153      spec:
   154        terminationGracePeriodSeconds: 0
   155        containers:
   156        - name: empire-backup
   157          image: docker.io/cilium/kafkaclient:1.0
   158          imagePullPolicy: IfNotPresent