updated deployment
This commit is contained in:
@@ -349,65 +349,90 @@ data:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/tracking-id: glance:apps/Deployment:glance-system/glance-helper
|
||||||
|
deployment.kubernetes.io/revision: "9"
|
||||||
|
reloader.stakater.com/auto: "true"
|
||||||
name: glance-helper
|
name: glance-helper
|
||||||
namespace: glance-system
|
namespace: glance-system
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: glance-helper
|
|
||||||
spec:
|
spec:
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 10
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: glance-helper
|
app: glance-helper
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
labels:
|
labels:
|
||||||
|
app: glance-helper
|
||||||
app.kubernetes.io/name: glance-helper
|
app.kubernetes.io/name: glance-helper
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: glance-helper
|
- args:
|
||||||
image: python:3.12-bookworm
|
- |-
|
||||||
ports:
|
set -eux;
|
||||||
- containerPort: 8000
|
export DEBIAN_FRONTEND=noninteractive;
|
||||||
env:
|
apt-get update;
|
||||||
- name: IDOKEP_URL
|
apt-get install -y --no-install-recommends curl ca-certificates iputils-ping dnsutils tzdata net-tools;
|
||||||
value: "https://www.idokep.hu/idojaras/Budapest%20VII.%20ker"
|
rm -rf /var/lib/apt/lists/*;
|
||||||
- name: PLACE_NAME
|
pip install --no-cache-dir fastapi uvicorn requests beautifulsoup4 prometheus-client;
|
||||||
value: "Budapest VII. ker"
|
python -c "import uvicorn; uvicorn.run('app:APP', host='0.0.0.0', port=8000)"
|
||||||
- name: TZ
|
command:
|
||||||
value: "Europe/Budapest"
|
- /bin/sh
|
||||||
- name: TANDOOR_INTERNAL_URL
|
- -lc
|
||||||
value: "http://tandoor.tandoor-system.svc.cluster.local:8080"
|
env:
|
||||||
- name: TANDOOR_PUBLIC_URL
|
- name: STAKATER_GLANCE_HELPER_APP_CONFIGMAP
|
||||||
value: "https://tandoor.dooplex.hu"
|
value: c6e34df8429997db4bd9c1b119c5a6f1e2337ecb
|
||||||
- name: GLANCE_HELPER_PUBLIC_URL
|
- name: IDOKEP_URL
|
||||||
value: "https://glance-helper.dooplex.hu"
|
value: https://www.idokep.hu/idojaras/Budapest%20VII.%20ker
|
||||||
- name: GLANCE_HELPER_KEY
|
- name: PLACE_NAME
|
||||||
value: "oplQqnLnJK2vErRVYJpvVUcSDBOSbCHZSbsYY2bwSifgTMfT"
|
value: Budapest VII. ker
|
||||||
- name: DATA_DIR
|
- name: TANDOOR_INTERNAL_URL
|
||||||
value: "/data"
|
value: http://tandoor.tandoor-system.svc.cluster.local:8080
|
||||||
- name: TANDOOR_TOKEN
|
- name: TANDOOR_PUBLIC_URL
|
||||||
value: "tda_8a8b169c_5d1f_4962_83a2_0f2719c7d61a"
|
value: https://tandoor.dooplex.hu
|
||||||
volumeMounts:
|
- name: TANDOOR_TOKEN
|
||||||
- name: app
|
value: tda_8a8b169c_5d1f_4962_83a2_0f2719c7d61a
|
||||||
mountPath: /app
|
- name: GLANCE_HELPER_PUBLIC_URL
|
||||||
- name: data
|
value: https://glance-helper.dooplex.hu
|
||||||
mountPath: /data
|
- name: DATA_DIR
|
||||||
command: ["/bin/bash","-lc"]
|
value: /data
|
||||||
args:
|
- name: GLANCE_HELPER_KEY
|
||||||
- |
|
value: oplQqnLnJK2vErRVYJpvVUcSDBOSbCHZSbsYY2bwSifgTMfT
|
||||||
set -e
|
- name: TZ
|
||||||
apt-get update
|
value: Europe/Budapest
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl tzdata dnsutils iputils-ping
|
image: python:3.12-bookworm
|
||||||
pip install --no-cache-dir fastapi uvicorn requests beautifulsoup4 prometheus_client
|
imagePullPolicy: IfNotPresent
|
||||||
cd /app
|
name: glance-helper
|
||||||
uvicorn app:APP --host 0.0.0.0 --port 8000
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
resources: {}
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /app
|
||||||
|
name: app
|
||||||
|
- mountPath: /data
|
||||||
|
name: data
|
||||||
|
workingDir: /app
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
securityContext: {}
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
volumes:
|
volumes:
|
||||||
- name: app
|
- configMap:
|
||||||
configMap:
|
defaultMode: 420
|
||||||
name: glance-helper-app
|
name: glance-helper-app
|
||||||
- name: data
|
name: app
|
||||||
persistentVolumeClaim:
|
- name: data
|
||||||
claimName: glance-helper-data
|
persistentVolumeClaim:
|
||||||
|
claimName: glance-helper-data
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
Reference in New Issue
Block a user