---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: Secret
metadata:
  name: sb-spec-1-secret
  labels:
    troubleshoot.io/kind: support-bundle
stringData:
  support-bundle-spec: |-
    apiVersion: troubleshoot.sh/v1beta2
    kind: SupportBundle
    metadata:
      name: sb-spec-1
    spec:
      collectors:
        - clusterResources: {}
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: sb-spec-2-configmap
  labels:
    troubleshoot.io/kind: support-bundle
data:
  support-bundle-spec: |-
    apiVersion: troubleshoot.sh/v1beta2
    kind: SupportBundle
    metadata:
      name: sb-spec-2
    spec:
      collectors:
        - logs:
            collectorName: wg-easy
---
# Source: wg-easy/templates/replicated-library.yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: release-name-wg-easy-config
  labels:
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/version: "7"
    helm.sh/chart: wg-easy-0.1.2
  annotations:
spec:
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: 100Mi
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: Service
metadata:
  name: release-name-wg-easy-vpn
  labels:
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/version: "7"
    helm.sh/chart: wg-easy-0.1.2
  annotations:
spec:
  type: LoadBalancer
  ports:
  - port: 51820
    targetPort: 51820
    protocol: UDP
    name: udp
  selector:
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/instance: release-name
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: redactor-spec-1-configmap
  labels:
    troubleshoot.io/kind: support-bundle
data:
  redactor-spec: |
    apiVersion: troubleshoot.sh/v1beta2
    kind: Redactor
    metadata:
      name: redactor-spec-1
    spec:
      redactors:
        - name: redact-text-1
          removals:
            values:
            -  REDACT SECOND TEXT PLEASE
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: Service
metadata:
  name: release-name-wg-easy-web
  labels:
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/version: "7"
    helm.sh/chart: wg-easy-0.1.2
  annotations:
spec:
  type: ClusterIP
  ipFamilyPolicy: SingleStack
  ports:
  - port: 51821
    targetPort: 51821
    protocol: TCP
    name: http
  selector:
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/instance: release-name
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: release-name-wg-easy-wg-easy
  labels:
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/version: "7"
    helm.sh/chart: wg-easy-0.1.2
spec:
  revisionHistoryLimit:
  replicas: 1
  strategy:
    type: RollingUpdate
  selector:
    matchLabels:
      app.kubernetes.io/name: wg-easy
      app.kubernetes.io/instance: release-name
  template:
    metadata:
      labels:
        app.kubernetes.io/name: wg-easy
        app.kubernetes.io/instance: release-name
    spec:

      serviceAccountName:
      automountServiceAccountToken:
      dnsPolicy: ClusterFirst
      enableServiceLinks:
      containers:
        - name: wg-container
          image: "weejewel/wg-easy:7"
          imagePullPolicy: IfNotPresent
          securityContext:
            allowPrivilegeEscalation: false
            capabilities:
              add:
              - NET_ADMIN
              drop: []
          env:
            - name: WG_HOST
              value: vpn.example.com
          ports:
            - containerPort: 51821
              protocol: TCP
            - containerPort: 51820
              protocol: UDP
          volumeMounts:
            - mountPath: /etc/wireguard
              name: config
          resources:
            requests:
              cpu: 50m
              memory: 50Mi
          livenessProbe:
            failureThreshold: 5
            initialDelaySeconds: 0
            periodSeconds: 10
            successThreshold: 1
            tcpSocket:
              port: 51821
            terminationGracePeriodSeconds: 30
            timeoutSeconds: 5
          readinessProbe:
            failureThreshold: 5
            initialDelaySeconds: 0
            periodSeconds: 10
            successThreshold: 1
            tcpSocket:
              port: 51821
            timeoutSeconds: 1
      volumes:
        - name: config
          persistentVolumeClaim:
            claimName: release-name-wg-easy-config
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: Secret
metadata:
  annotations:
    "helm.sh/hook": pre-install, pre-upgrade
    "helm.sh/hook-weight": "-6"
    "helm.sh/hook-delete-policy": before-hook-creation, hook-succeeded, hook-failed
  labels:
    app.kubernetes.io/managed-by: "Helm"
    app.kubernetes.io/instance: "release-name"
    app.kubernetes.io/version: 0.62.1
    helm.sh/chart: "troubleshoot-0.1.0"
    troubleshoot.io/kind: preflight
  name: "release-name-preflight-config"
data:
  preflight.yaml: CmFwaVZlcnNpb246IHRyb3VibGVzaG9vdC5zaC92MWJldGEyCmtpbmQ6IFByZWZsaWdodAptZXRhZGF0YToKICBuYW1lOiBwcmVmbGlnaHQtc2FtcGxlCnNwZWM6CiAgCiAgYW5hbHl6ZXJzOgogICAgLSBub2RlUmVzb3VyY2VzOgogICAgICAgIGNoZWNrTmFtZTogTm9kZSBDb3VudCBDaGVjawogICAgICAgIG91dGNvbWVzOgogICAgICAgICAgLSBmYWlsOgogICAgICAgICAgICAgIHdoZW46ICdjb3VudCgpIDwgMycKICAgICAgICAgICAgICBtZXNzYWdlOiBUaGUgY2x1c3RlciBuZWVkcyBhIG1pbmltdW0gb2YgMyBub2Rlcy4KICAgICAgICAgIC0gcGFzczoKICAgICAgICAgICAgICBtZXNzYWdlOiBUaGVyZSBhcmUgbm90IGVub3VnaCBub2RlcyB0byBydW4gdGhpcyBhcHBsaWNhdGlvbiAoMyBvciBtb3JlKQogICAgLSBjbHVzdGVyVmVyc2lvbjoKICAgICAgICBvdXRjb21lczoKICAgICAgICAgIC0gZmFpbDoKICAgICAgICAgICAgICB3aGVuOiAiPCAxLjE2LjAiCiAgICAgICAgICAgICAgbWVzc2FnZTogVGhlIGFwcGxpY2F0aW9uIHJlcXVpcmVzIGF0IGxlYXN0IEt1YmVybmV0ZXMgMS4xNi4wLCBhbmQgcmVjb21tZW5kcyAxLjE4LjAuCiAgICAgICAgICAgICAgdXJpOiBodHRwczovL2t1YmVybmV0ZXMuaW8KICAgICAgICAgIC0gd2FybjoKICAgICAgICAgICAgICB3aGVuOiAiPCAxLjE4LjAiCiAgICAgICAgICAgICAgbWVzc2FnZTogWW91ciBjbHVzdGVyIG1lZXRzIHRoZSBtaW5pbXVtIHZlcnNpb24gb2YgS3ViZXJuZXRlcywgYnV0IHdlIHJlY29tbWVuZCB5b3UgdXBkYXRlIHRvIDEuMTguMCBvciBsYXRlci4KICAgICAgICAgICAgICB1cmk6IGh0dHBzOi8va3ViZXJuZXRlcy5pbwogICAgICAgICAgLSBwYXNzOgogICAgICAgICAgICAgIG1lc3NhZ2U6IFlvdXIgY2x1c3RlciBtZWV0cyB0aGUgcmVjb21tZW5kZWQgYW5kIHJlcXVpcmVkIHZlcnNpb25zIG9mIEt1YmVybmV0ZXMuCiAgICA=
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: release-name-preflight-wg-preflights
  labels:
    helm.sh/chart: wg-easy-0.1.2
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "7"
    app.kubernetes.io/managed-by: Helm
    troubleshoot.io/kind: preflight
  annotations:
    "helm.sh/hook": pre-install, pre-upgrade
    "helm.sh/hook-weight": "-6"
    "helm.sh/hook-delete-policy": before-hook-creation, hook-succeeded, hook-failed
secrets:
  - name: release-name-wg-easy-preflight-wg-preflights
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: Secret
metadata:
  name: release-name-wg-easy-preflight-wg-preflights
  labels:
    helm.sh/chart: wg-easy-0.1.2
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "7"
    app.kubernetes.io/managed-by: Helm
    troubleshoot.io/kind: preflight
  annotations:
    "helm.sh/hook": pre-install, pre-upgrade
    "helm.sh/hook-weight": "-6"
    "helm.sh/hook-delete-policy": before-hook-creation, hook-succeeded, hook-failed
stringData:
  preflight.yaml: |-
    apiVersion: troubleshoot.sh/v1beta2
    kind: Preflight
    metadata:
      name: preflight-1
    spec:
      collectors:
        - clusterResources:
            ignoreRBAC: true
      analyzers:
        - clusterVersion:
            outcomes:
            - pass:
                message: Your cluster meets the recommended and required versions of Kubernetes.
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: release-name-preflight-wg-preflights
  labels:
    helm.sh/chart: wg-easy-0.1.2
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "7"
    app.kubernetes.io/managed-by: Helm
    troubleshoot.io/kind: preflight
  annotations:
    "helm.sh/hook": pre-install, pre-upgrade
    "helm.sh/hook-weight": "-6"
    "helm.sh/hook-delete-policy": before-hook-creation, hook-succeeded, hook-failed
rules:
  - apiGroups:
      - ""
    resources:
      - "namespaces"
    verbs:
      - "get"
      - "watch"
      - "list"
  - apiGroups:
      - ""
    resources:
      - "nodes"
    verbs:
      - "get"
      - "watch"
      - "list"
  - apiGroups:
      - ""
    resources:
      - "pods"
    verbs:
      - "get"
      - "watch"
      - "list"
      - "create"
  - apiGroups:
      - "apiextensions.k8s.io"
    resources:
      - "customresourcedefinitions"
    verbs:
      - "get"
      - "watch"
      - "list"
  - apiGroups:
      - "storage.k8s.io"
    resources:
      - "storageclasses"
    verbs:
      - "get"
      - "watch"
      - "list"
  - apiGroups:
      - ""
    resources:
      - "pods/log"
    verbs:
      - "get"
      - "list"
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: Secret
metadata:
  name: "some-secret"
stringData:
  somesecret: gibberish text
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: release-name-preflight-wg-preflights
  labels:
    helm.sh/chart: wg-easy-0.1.2
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "7"
    app.kubernetes.io/managed-by: Helm
    troubleshoot.io/kind: preflight
  annotations:
    "helm.sh/hook": pre-install, pre-upgrade
    "helm.sh/hook-weight": "-6"
    "helm.sh/hook-delete-policy": before-hook-creation, hook-succeeded, hook-failed
subjects:
- kind: ServiceAccount
  name: release-name-preflight-wg-preflights
  namespace: default
roleRef:
  kind: ClusterRole
  name: release-name-preflight-wg-preflights
  apiGroup: rbac.authorization.k8s.io
---
# Source: wg-easy/templates/replicated-library.yaml
apiVersion: v1
kind: Pod
metadata:
  name: release-name-preflight-check
  labels:
    helm.sh/chart: wg-easy-0.1.2
    app.kubernetes.io/name: wg-easy
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "7"
    app.kubernetes.io/managed-by: Helm
    troubleshoot.io/kind: preflight
  annotations:
    "helm.sh/hook": pre-install, pre-upgrade
    "helm.sh/show-output": "true"
    "helm.sh/hook-weight": "-5"
    "helm.sh/hook-delete-policy": before-hook-creation, hook-succeeded, hook-failed
    "helm.sh/hook-output-log-policy": hook-failed, hook-succeeded
spec:
  serviceAccountName: release-name-preflight-wg-preflights
  restartPolicy: Never
  volumes:
    - name: preflights
      secret:
        secretName: release-name-wg-easy-preflight-wg-preflights
  containers:
    - name: pre-install-job
      image:  replicated/preflight:latest
      command:
        - "preflight"
        - "--interactive=false"
        - "/preflights/preflight.yaml"
      volumeMounts:
        - name: preflights
          mountPath: /preflights
