diff --git a/.argo/application.yaml b/.argo/application.yaml new file mode 100644 index 0000000..c2d706a --- /dev/null +++ b/.argo/application.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + annotations: + argocd-image-updater.argoproj.io/image-list: dashboard=registry.odit.services/library/npm-cache-proxy:latest + argocd-image-updater.argoproj.io/write-back-method: argocd + argocd-image-updater.argoproj.io/update-strategy: digest + name: npm-cache + namespace: argocd +spec: + project: default + source: + repoURL: "git@git.odit.services:odit/npm-cache-proxy.git" + path: .argo + targetRevision: dev + destination: + server: "https://kubernetes.default.svc" + namespace: drone + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - PruneLast=true diff --git a/.argo/deployment.yaml b/.argo/deployment.yaml new file mode 100644 index 0000000..5967a73 --- /dev/null +++ b/.argo/deployment.yaml @@ -0,0 +1,33 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: npm-cache + namespace: gutfeel + labels: + app: npm-cache +spec: + replicas: 1 + selector: + matchLabels: + app: npm-cache + template: + metadata: + labels: + app: npm-cache + spec: + containers: + - name: npm-cache + image: registry.odit.services/library/npm-cache-proxy:latest + imagePullPolicy: IfNotPresent + ports: + - containerPort: 8080 + name: web + env: + - name: CACHE_TTL + value: "43200" + - name: LISTEN_ADDRESS + value: "0.0.0.0:8080" + - name: UPSTREAM_ADDRESS + value: "https://registry.npmjs.org" + restartPolicy: Always diff --git a/.argo/kustomization.yaml b/.argo/kustomization.yaml new file mode 100644 index 0000000..b002007 --- /dev/null +++ b/.argo/kustomization.yaml @@ -0,0 +1,5 @@ +commonLabels: + app: npm-cache +resources: + - deployment.yaml + - service.yaml \ No newline at end of file diff --git a/.argo/service.yaml b/.argo/service.yaml new file mode 100644 index 0000000..6aea18f --- /dev/null +++ b/.argo/service.yaml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: npm-cache + namespace: drone + labels: + app: npm-cache +spec: + ports: + - port: 8080 + selector: + app: npm-cache + clusterIP: None