70 lines
1.5 KiB
YAML
70 lines
1.5 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: npm-cache
|
|
namespace: drone
|
|
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
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: npm-cache-redis
|
|
namespace: drone
|
|
labels:
|
|
app: npm-cache-redis
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: npm-cache-redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: npm-cache-redis
|
|
spec:
|
|
containers:
|
|
- name: npm-cache-redis
|
|
image: registry.odit.services/hub/redis/redis-stack:latest
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8001
|
|
name: web
|
|
- containerPort: 6379
|
|
name: redis
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: "npm-cache-redis"
|