apiVersion: apps/v1
kind: Deployment
metadata:
  name: flume-slave02
spec:
  selector:
    matchLabels:
      app: flume-slave02
  replicas: 1
  template:
    metadata:
      labels:
        app: flume-slave02
    spec:
      hostname: flume-slave02
      containers:
        - env:
            - name: FLUME_AGENT_NAME
              value: docker
          name: flume-slave02
          image: 119.253.86.183:18080/hadoop/book2/flume-apache:02
          tty: true
          ports:
            - containerPort: 80
