install fastapi-httpbin
This commit is contained in:
parent
e55b925477
commit
6da2dbe9f5
49
apps/httpbin/deployment.yaml
Normal file
49
apps/httpbin/deployment.yaml
Normal file
|
@ -0,0 +1,49 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: httpbin
|
||||
name: httpbin
|
||||
spec:
|
||||
progressDeadlineSeconds: 600
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: httpbin
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: httpbin
|
||||
spec:
|
||||
containers:
|
||||
- image: docker.io/dmuth1/fastapi-httpbin:latest
|
||||
imagePullPolicy: Always
|
||||
name: httpbin
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /get
|
||||
port: http
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /get
|
||||
port: http
|
||||
resources:
|
||||
requests:
|
||||
memory: 64Mi
|
||||
cpu: 150m
|
||||
limits:
|
||||
memory: 256Mi
|
||||
cpu: 300m
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
25
apps/httpbin/ingress.yaml
Normal file
25
apps/httpbin/ingress.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
labels:
|
||||
app: httpbin
|
||||
name: httpbin
|
||||
spec:
|
||||
rules:
|
||||
- host: httpbin.tbrnt.ch
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: httpbin
|
||||
port:
|
||||
number: 8080
|
||||
tls:
|
||||
- hosts:
|
||||
- httpbin.tbrnt.ch
|
||||
secretName: ingress-cert
|
13
apps/httpbin/service.yaml
Normal file
13
apps/httpbin/service.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: httpbin
|
||||
name: httpbin
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: http
|
||||
selector:
|
||||
app: httpbin
|
19
system/apps/httpbin.yaml
Normal file
19
system/apps/httpbin.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: httpbin
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: apps
|
||||
source:
|
||||
path: apps/httpbin
|
||||
repoURL: https://git.tbrnt.ch/tobru/gitops-zurrli.git
|
||||
targetRevision: HEAD
|
||||
destination:
|
||||
namespace: httpbin
|
||||
server: https://kubernetes.default.svc
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
Loading…
Reference in a new issue