✨ Adds chhoto-url
This commit is contained in:
BIN
url/data/urls.sqlite
Normal file
BIN
url/data/urls.sqlite
Normal file
Binary file not shown.
56
url/depl.yaml
Normal file
56
url/depl.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: url
|
||||
labels:
|
||||
app: url
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: url
|
||||
template:
|
||||
metadata:
|
||||
name: url
|
||||
labels:
|
||||
app: url
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
containers:
|
||||
- name: url
|
||||
image: sintan1729/chhoto-url
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 4Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 32Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
port: 4567
|
||||
path: /
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 10
|
||||
failureThreshold: 3
|
||||
ports:
|
||||
- containerPort: 4567
|
||||
env:
|
||||
- name: password
|
||||
value: test123
|
||||
- name: db_url
|
||||
value: /data/urls.sqlite
|
||||
volumeMounts:
|
||||
- name: url-data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: url-data
|
||||
hostPath:
|
||||
path: /mnt/Projects/k3s-testing/url/data
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: 0%
|
||||
maxSurge: 10%
|
11
url/serv.yaml
Normal file
11
url/serv.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: url
|
||||
spec:
|
||||
selector:
|
||||
app: url
|
||||
ports:
|
||||
- port: 4567
|
||||
targetPort: 4567
|
||||
type: LoadBalancer
|
Reference in New Issue
Block a user