feat: 🎸 add ytd api
This commit is contained in:
22
apps/ytd/application.yaml
Normal file
22
apps/ytd/application.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: ytd
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.svc.pguia.com/guipguia/argocd.git
|
||||
targetRevision: HEAD
|
||||
path: apps/ytd
|
||||
directory:
|
||||
recurse: false
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: ytd
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
49
apps/ytd/deployment.yaml
Normal file
49
apps/ytd/deployment.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ytd-api
|
||||
namespace: ytd
|
||||
labels:
|
||||
app: ytd-api
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ytd-api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ytd-api
|
||||
spec:
|
||||
containers:
|
||||
- name: ytd
|
||||
image: guipguia/rebels:ytd
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: downloads
|
||||
mountPath: /tmp/downloads
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
volumes:
|
||||
- name: downloads
|
||||
persistentVolumeClaim:
|
||||
claimName: ytd-data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: ytd-api
|
||||
namespace: ytd
|
||||
spec:
|
||||
selector:
|
||||
app: ytd-api
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
Reference in New Issue
Block a user