Skip to content

Commit

Permalink
volume 이렇게 하면 안되지만... 혼자 쓸건데 귀찮다
Browse files Browse the repository at this point in the history
  • Loading branch information
archmagece committed Sep 5, 2024
1 parent 3e084b6 commit ecb0dc2
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 11 deletions.
49 changes: 49 additions & 0 deletions helm/templates/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "proxynd.fullname" . }}-files
data:
proxynd_global.yaml: |-
cache:
ttl: 3600
proxynd_apt-proxy.yaml: |-
path: proxy/apt
#cache:
# enabled: false
# retention_time: 1h
# evict: 1h
proxies:
ubuntu:
- name: official
url: http://archive.ubuntu.com/ubuntu
- name: kakao
url: http://mirror.kakao.com/ubuntu
- name: ubuntu-security
url: http://security.ubuntu.com/ubuntu
debian:
- name: official
url: http://ftp.debian.org/debian
proxynd_maven-proxy.yaml: |-
path: proxy/maven
use_cache: true
# https://docs.gradle.org/current/userguide/declaring_repositories.html
proxies:
- name: Maven Center
id: maven-center
url: https://repo.maven.apache.org/maven2/
description: "maven centeral"
- name: jcener
id: jcenter
url: https://jcenter.bintray.com
- name: google
id: google
url: https://maven.google.com
# https://repo.spring.io/webapp/#/home
- name: spring_release
id: repo.spring.io-releases
url: https://repo.spring.io/release
- name: spring_snapshots
id: repo.spring.io-snapshots
url: https://repo.spring.io/snapshot
17 changes: 17 additions & 0 deletions helm/templates/service-local.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if .Values.serviceLocal.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "proxynd.fullname" . }}-local
labels:
{{- include "proxynd.labels" . | nindent 4 }}
spec:
type: {{ .Values.serviceLocal.type }}
ports:
- port: {{ .Values.serviceLocal.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "proxynd.selectorLabels" . | nindent 4 }}
{{- end }}
39 changes: 28 additions & 11 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ service:
type: ClusterIP
port: 8080

serviceLocal:
enabled: false
type: LoadBalancer
port: 18080

ingress:
enabled: false
className: ""
Expand Down Expand Up @@ -68,25 +73,37 @@ resources: {}

livenessProbe:
httpGet:
path: /
path: /healthz
port: http
readinessProbe:
httpGet:
path: /
path: /healthz
port: http

# Additional volumes on the output Deployment definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false
volumes:
- name: "proxynd-configmap-volume-mount-files"
configMap:
name: "proxynd-configmap-files"
items:
- key: proxynd_global.yaml
path: global.yaml
- key: proxynd_apt-proxy.yaml
path: apt-proxy.yaml
- key: proxynd_maven-proxy.yaml
path: maven-proxy.yaml

# Additional volumeMounts on the output Deployment definition.
volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true
volumeMounts:
- name: "proxynd-configmap-volume-mount-files"
mountPath: /config/global.yaml
subPath: global.yaml
- name: "proxynd-configmap-volume-mount-files"
mountPath: /config/apt-proxy.yaml
subPath: apt-proxy.yaml
- name: "proxynd-configmap-volume-mount-files"
mountPath: /config/maven-proxy.yaml
subPath: maven-proxy.yaml

nodeSelector: {}

Expand Down

0 comments on commit ecb0dc2

Please sign in to comment.