jiahui
service.yaml
apiVersion: v1
kind: Service
metadata:
name: uptime-kuma
labels:
cloud.sealos.io/app-deploy-manager: uptime-kuma
spec:
ports:
- port: 30000
targetPort: 30000
name: qqccxcyyqamz
selector:
app: uptime-kuma
===============================================================
deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: uptime-kuma
annotations:
originImageName: louislam/uptime-kuma:1
deploy.cloud.sealos.io/minReplicas: '1'
deploy.cloud.sealos.io/maxReplicas: '1'
labels:
cloud.sealos.io/app-deploy-manager: uptime-kuma
app: uptime-kuma
spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: uptime-kuma
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
template:
metadata:
labels:
app: uptime-kuma
restartTime: '20231117110615'
spec:
containers:
- name: uptime-kuma
image: louislam/uptime-kuma:1
env: []
resources:
requests:
cpu: 50m
memory: 51Mi
limits:
cpu: 500m
memory: 512Mi
ports:
- containerPort: 30000
name: qqccxcyyqamz
imagePullPolicy: Always
volumeMounts: []
volumes: []
===============================================================
ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: network-ozejtewspfqo
labels:
cloud.sealos.io/app-deploy-manager: uptime-kuma
cloud.sealos.io/app-deploy-manager-domain: whhhwnbhziqh
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: 32m
nginx.ingress.kubernetes.io/server-snippet: |
client_header_buffer_size 64k;
large_client_header_buffers 4 128k;
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
nginx.ingress.kubernetes.io/backend-protocol: HTTP
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/client-body-buffer-size: 64k
nginx.ingress.kubernetes.io/proxy-buffer-size: 64k
nginx.ingress.kubernetes.io/proxy-send-timeout: '300'
nginx.ingress.kubernetes.io/proxy-read-timeout: '300'
nginx.ingress.kubernetes.io/configuration-snippet: |
if ($request_uri ~* \.(js|css|gif|jpe?g|png)) {
expires 30d;
add_header Cache-Control "public";
}
spec:
rules:
- host: whhhwnbhziqh.192.168.4.201.nip.io
http:
paths:
- pathType: Prefix
path: /()(.*)
backend:
service:
name: uptime-kuma
port:
number: 30000
tls:
- hosts:
- whhhwnbhziqh.192.168.4.201.nip.io
secretName: wildcard-cert