无法在使用 Ubuntu 18.04 的 Azure VM 制作的 K8s 集群上部署 Harbor(不使用 AKS)

时间:2021-07-09 10:17:00

标签: azure kubernetes kubernetes-helm harbor

我在 azure 上有 3 台装有 Ubuntu 18.04 的虚拟机。我已经使用它们和 calico 策略创建了一个 K8s 集群。一主二工。 4 个 vCPU、16 Gig Ram 和 32 GB 存储空间。

我已经安装了 helm 并尝试部署 Harbor。 但每次我部署它。它不成功。如果我在 AKS 托管集群上执行此操作。 它工作正常,但我无法浏览它,因为 AK 无法访问主节点,所以我选择了另一种方式。 All Pods

Logs of one of the Databse Pod

Database POD describe

PV, SC. WHich I have manually created, PVC was created by the helm chart

样本:

  • sc.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
  labels:
    addonmanager.kubernetes.io/mode: EnsureExists
    kubernetes.io/cluster-service: "true"
  name: local-path
provisioner: kubernetes.io/no-provisioner
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
  • pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
  name: task-pv-volume6
  labels:
    type: local
spec:
  storageClassName: local-path
  capacity:
    storage: 5Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/mnt/data"

文档:https://goharbor.io/docs/edge/install-config/harbor-ha-helm/ https://rudimartinsen.com/2020/08/08/setting-up-a-kubernetes-cluster-vms/

0 个答案:

没有答案