diff --git a/clusters/dev/apps/atlas/Chart.yaml b/clusters/dev/apps/atlas/Chart.yaml new file mode 100644 index 0000000..988d9a0 --- /dev/null +++ b/clusters/dev/apps/atlas/Chart.yaml @@ -0,0 +1,7 @@ +apiVersion: v2 +name: atlas +version: 0.1.0 +dependencies: + - name: base-chart-hdc + version: "1.0.1" + repository: https://pilotdataplatform.github.io/helm-charts/ diff --git a/clusters/dev/apps/atlas/application.yaml b/clusters/dev/apps/atlas/application.yaml new file mode 100644 index 0000000..d988856 --- /dev/null +++ b/clusters/dev/apps/atlas/application.yaml @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: atlas + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "8" +spec: + project: default + source: + repoURL: https://github.com/PilotDataPlatform/pilot-hdc-platform-gitops.git + targetRevision: main + path: clusters/dev/apps/atlas + helm: + valueFiles: + - ../../registry.yaml + - values.yaml + destination: + server: https://kubernetes.default.svc + namespace: utility + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - ServerSideApply=true diff --git a/clusters/dev/apps/atlas/templates/pvc.yaml b/clusters/dev/apps/atlas/templates/pvc.yaml new file mode 100644 index 0000000..8404c01 --- /dev/null +++ b/clusters/dev/apps/atlas/templates/pvc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: atlas-storage + namespace: {{ .Release.Namespace }} +spec: + accessModes: + - ReadWriteMany + storageClassName: nfs-client + resources: + requests: + storage: 5Gi diff --git a/clusters/dev/apps/atlas/values.yaml b/clusters/dev/apps/atlas/values.yaml new file mode 100644 index 0000000..ddb7475 --- /dev/null +++ b/clusters/dev/apps/atlas/values.yaml @@ -0,0 +1,64 @@ +base-chart-hdc: + image: + repository: n47w5524.c1.de1.container-registry.ovh.net/hdc-services-external/apache-atlas + tag: "2.1.0" + pullPolicy: IfNotPresent + + fullnameOverride: atlas + + labels: + app: atlas + instance: atlas + + replicaCount: 1 + + container: + name: atlas + command: /opt/apache-atlas-2.1.0/bin/atlas_start.py + ports: + - name: http + containerPort: 21000 + protocol: TCP + + service: + type: ClusterIP + ports: + - port: 21000 + targetPort: 21000 + protocol: TCP + name: http + + imagePullSecrets: + - name: docker-registry-secret + + extraEnv: + LOG4J_FORMAT_MSG_NO_LOOKUPS: "true" + MANAGE_LOCAL_HBASE: "true" + MANAGE_LOCAL_SOLR: "true" + + extraVolumes: + - name: atlas-storage + persistentVolumeClaim: + claimName: atlas-storage + + extraVolumeMounts: + - name: atlas-storage + mountPath: /opt/apache-atlas-2.1.0/data + subPath: data + - name: atlas-storage + mountPath: /opt/apache-atlas-2.1.0/logs + subPath: logs + + resources: + requests: + cpu: 10m + memory: 128Mi + limits: + cpu: 500m + memory: 500Mi + + readinessProbe: + tcpSocket: + port: 21000 + initialDelaySeconds: 60 + periodSeconds: 10