apiVersion: apps/v1
kind: Deployment
metadata:
  name: logging
  labels:
    app: logging
spec:
  replicas: 1
  selector:
    matchLabels:
      app: logging
  template:
    metadata:
      labels:
        app: logging
    spec:
      containers:
      - name: logging
        image: registry.ytzx.com/ytzx/logging:6
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 80
          name: http
        - containerPort: 6253
          name: udp
        volumeMounts:
        - mountPath: /etc/localtime
          name: time
        resources:       
          limits:
            cpu: 500m
            memory: 1024Mi
          requests:
            cpu: 10m
            memory: 200Mi
      imagePullSecrets:
      - name: ytzx     
      volumes:          
      - name: time
        hostPath:
          path: /etc/localtime
