...

Text file src/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cassandra/tester.yaml

Documentation: k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cassandra

     1apiVersion: apps/v1
     2kind: Deployment
     3metadata:
     4  name: cassandra-test-server
     5spec:
     6  replicas: 3
     7  selector:
     8    matchLabels:
     9      app: test-server
    10  template:
    11    metadata:
    12      labels:
    13        app: test-server
    14    spec:
    15      containers:
    16      - name: test-server
    17        image: registry.k8s.io/cassandra-e2e-test:0.1
    18        imagePullPolicy: Always
    19        ports:
    20        - containerPort: 8080
    21        readinessProbe:
    22          httpGet:
    23            path: /healthz
    24            port: 8080
    25          initialDelaySeconds: 2
    26          periodSeconds: 2
    27---
    28apiVersion: policy/v1
    29kind: PodDisruptionBudget
    30metadata:
    31  name: tester-pdb
    32  labels:
    33    pdb: test-server
    34spec:
    35  minAvailable: 1
    36  selector:
    37    matchLabels:
    38      app: test-server
    39---
    40apiVersion: v1
    41kind: Service
    42metadata:
    43  labels:
    44    app: test-server
    45  name: test-server
    46spec:
    47  ports:
    48    - port: 8080
    49  selector:
    50    app: test-server
    51  type: LoadBalancer

View as plain text