github.com/looshlee/cilium@v1.6.12/examples/kubernetes-cassandra/cass-sw-app.yaml (about)

     1  ---
     2  apiVersion: apps/v1
     3  kind: Deployment
     4  metadata:
     5    name: cass-server
     6  spec:
     7    selector:
     8      matchLabels:
     9        app: cass-server
    10    replicas: 1
    11    template:
    12      metadata:
    13        labels:
    14          app: cass-server
    15      spec:
    16        containers:
    17        - name: cassandra
    18          image: docker.io/cassandra
    19          ports:
    20          - containerPort: 9042
    21  ---
    22  apiVersion: v1
    23  kind: Service
    24  metadata:
    25    name: cassandra-svc
    26    labels:
    27      app: cass-server
    28  spec:
    29    ports:
    30    - port: 9042
    31      name: cassandra-port
    32      targetPort: 9042
    33      protocol: TCP
    34    selector:
    35      app: cass-server
    36    clusterIP: None
    37  ---
    38  apiVersion: apps/v1
    39  kind: Deployment
    40  metadata:
    41    name: empire-hq
    42  spec:
    43    selector:
    44      matchLabels:
    45        app: empire-hq
    46    replicas: 1
    47    template:
    48      metadata:
    49        labels:
    50          app: empire-hq
    51      spec:
    52        containers:
    53        - name: empire-hq
    54          image: docker.io/cassandra
    55          command: ["sleep"]
    56          args: ["30000"]
    57  --- 
    58  apiVersion: apps/v1
    59  kind: Deployment
    60  metadata:
    61    name: empire-outpost
    62  spec:
    63    selector:
    64      matchLabels:
    65        app: empire-outpost
    66    replicas: 1
    67    template:
    68      metadata:
    69        labels:
    70          app: empire-outpost
    71      spec:
    72        containers:
    73        - name: empire-outpost
    74          image: docker.io/cassandra
    75          command: ["sleep"]
    76          args: ["30000"]