github.com/zhyoulun/cilium@v1.6.12/test/k8sT/manifests/demo_ds.yaml (about)

     1  ---
     2  apiVersion: apps/v1
     3  kind: DaemonSet
     4  metadata:
     5    name: testds
     6    namespace: default
     7  spec:
     8    selector:
     9      matchLabels:
    10        zgroup: testDS
    11    template:
    12      metadata:
    13        labels:
    14          zgroup: testDS
    15      spec:
    16        containers:
    17        - name: web
    18          image: docker.io/cilium/demo-httpd:latest
    19          imagePullPolicy: IfNotPresent
    20          ports:
    21          - containerPort: 80
    22          readinessProbe:
    23            httpGet:
    24              path: /
    25              port: 80
    26        terminationGracePeriodSeconds: 0
    27        tolerations:
    28        - effect: NoSchedule
    29          key: node-role.kubernetes.io/master
    30        - effect: NoSchedule
    31          key: node.cloudprovider.kubernetes.io/uninitialized
    32          value: "true"
    33  ---
    34  apiVersion: apps/v1
    35  kind: DaemonSet
    36  metadata:
    37    name: testclient
    38    namespace: default
    39  spec:
    40    selector:
    41      matchLabels:
    42        zgroup: testDSClient
    43    template:
    44      metadata:
    45        labels:
    46          zgroup: testDSClient
    47      spec:
    48        terminationGracePeriodSeconds: 0
    49        containers:
    50        - name: web
    51          image: docker.io/cilium/demo-client:latest
    52          imagePullPolicy: IfNotPresent
    53          command: [ "sleep" ]
    54          args:
    55            - "1000h"
    56  ---
    57  apiVersion: v1
    58  kind: Service
    59  metadata:
    60    name: testds-service
    61  spec:
    62    ports:
    63    - port: 80
    64    selector:
    65      zgroup: testDS
    66  ---
    67  
    68  apiVersion: v1
    69  kind: Service
    70  metadata:
    71    name: test-nodeport
    72  spec:
    73    type: NodePort
    74    ports:
    75    - port: 10080
    76      targetPort: 80
    77      protocol: TCP
    78      name: http
    79    selector:
    80      zgroup: testDS