Add proxy to be used by telepresence

This commit is contained in:
2025-09-22 23:36:52 +02:00
parent e64b4b8e93
commit 1fee625d20
5 changed files with 82 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: proxy
namespace: argocd
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: proxy
syncPolicy:
automated:
prune: true
selfHeal: false
syncOptions:
- CreateNamespace=true
source:
repoURL: https://github.com/zoriya/snow
targetRevision: HEAD
path: charts/proxy
+16
View File
@@ -0,0 +1,16 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: proxy
spec:
template:
spec:
containers:
- name: proxy
image: alpine
command:
- sleep
- infinitely
ports:
- name: http
containerPort: 8080
+24
View File
@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: proxy
annotations:
cert-manager.io/cluster-issuer: letsencrypt
acme.cert-manager.io/http01-edit-in-place: "true"
spec:
ingressClassName: cilium
rules:
- host: proxy.sdg.moe
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: proxy
port:
name: http
tls:
- hosts:
- proxy.sdg.moe
secretName: proxy-ssl
+12
View File
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
labels:
- includeSelectors: true
pairs:
apps.kubernetes.io/name: proxy
resources:
- ./deploy.yaml
- ./svc.yaml
- ./ingress.yaml
+10
View File
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: proxy
spec:
type: ClusterIP
ports:
- name: http
port: 8080
targetPort: 8080