manifests.yaml 888 Bytes
Newer Older
qiuqunfeng's avatar
commit  
qiuqunfeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
apiVersion: apps/v1
kind: Deployment
metadata:
  name: waf-console
spec:
  selector:
    matchLabels:
      app: waf-console
  template:
    metadata:
      labels:
        app: waf-console
    spec:
      containers:
      - name: waf-console
        image: waf-console:latest
        resources:
          limits:
            memory: "128Mi"
            cpu: "500m"
        ports:
        - containerPort: 8080
        volumeMounts:
        - name: waf-console-config
          mountPath: /
        - name: waf-console-rules
          mountPath: /rules
      volumes:
      - name: waf-console-config
        configMap:
          name: waf-console-config
      - name: waf-console-rules
        configMap:
          name: waf-console-rules
---
apiVersion: v1
kind: Service
metadata:
  name: waf-console
spec:
  selector:
    app: waf-console
  ports:
  - port: 8080
    targetPort: 8080