apiVersion: apps/v1
kind: Deployment
metadata:
  name: kubevela-io
  namespace: vela-system
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app.oam.dev/component: kubevela-io
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app.oam.dev/component: kubevela-io
    spec:
      containers:
        - image: oamdev/kubevela-io:latest
          imagePullPolicy: Always
          name: kubevela-io
          ports:
            - containerPort: 80
              name: port-80
              protocol: TCP
          resources:
            limits:
              cpu: 200m
              memory: 100Mi
            requests:
              cpu: 200m
              memory: 100Mi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30

---

apiVersion: v1
kind: ConfigMap
metadata:
  name: kruise-rollout-relation
  namespace: vela-system
  labels:
    "rules.oam.dev/resources": "true"
data:
  rules: |-
    - parentResourceType:
        group: rollouts.kruise.io
        kind: Rollout
      childrenResourceType:
        - apiVersion: rollouts.kruise.io/v1alpha1
          kind: BatchRelease
    - parentResourceType:
        group: rollouts.kruise.io
        kind: BatchRelease
      childrenResourceType:
        - apiVersion: apps/v1
          kind: Deployment