Skip to content

Add kube-ovn troubleshooting guide #4

Activity

  1. kvaps commented on May 6, 2024

    @kvaps
    MemberAuthor

    Job to cleanup state:

    apiVersion: apps/v1
    kind: DaemonSet
    metadata:
      name: ovn-cleanup
      namespace: cozy-kubeovn
    spec:
      selector:
        matchLabels:
          app: ovn-cleanup
      template:
        metadata:
          labels:
            app: ovn-cleanup
            component: network
            type: infra
        spec:
          affinity:
            podAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
              - labelSelector:
                  matchLabels:
                    app: ovn-central
                topologyKey: "kubernetes.io/hostname"
          containers:
          - name: cleanup
            image: busybox
            command: ["/bin/sh", "-xc", "rm -rf /host-config-ovn/*; rm -rf /host-config-ovn/.*; exec sleep infinity"]
            volumeMounts:
            - name: host-config-ovn
              mountPath: /host-config-ovn
          nodeSelector:
            kubernetes.io/os: linux
            node-role.kubernetes.io/control-plane: ""
          tolerations:
          - operator: "Exists"
          volumes:
          - name: host-config-ovn
            hostPath:
              path: /var/lib/ovn
              type: ""
          hostNetwork: true
          restartPolicy: Always
          terminationGracePeriodSeconds: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/documentationCategorizes issue or PR as related to documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions