Skip to content

Commit

Permalink
stash.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie committed Jul 26, 2023
1 parent 010e520 commit 94af6f0
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 46 deletions.
2 changes: 1 addition & 1 deletion frontend/desktop/deploy/desktop/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"
7 changes: 7 additions & 0 deletions frontend/desktop/deploy/desktop/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}
labels:
{{- include "desktop.labels" . | nindent 4 }}
data:
1 change: 1 addition & 0 deletions frontend/desktop/deploy/desktop/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "desktop.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "desktop.labels" . | nindent 4 }}
spec:
Expand Down
21 changes: 21 additions & 0 deletions frontend/desktop/deploy/desktop/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ if .Values.rbac.create }}
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ .Release.Name }}-role
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/component: rbac

---

kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ .Release.Name }}-rolebinding
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/component: rbac
annotations:

{{ end }}
106 changes: 61 additions & 45 deletions frontend/desktop/deploy/desktop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,68 +5,84 @@
replicaCount: 1

image:
repository: nginx
repository: ghcr.io/labring/sealos-desktop-frontend
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "latest"

imagePullSecrets: []
imagePullSecrets: [ ]
nameOverride: ""
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
annotations: { }
name: "desktop-frontend"

podAnnotations: {}
podAnnotations: { }

podSecurityContext: {}
# fsGroup: 2000
podSecurityContext: { }
# fsGroup: 2000

securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000

env:

rbac:
create: true
## e.g:
## rules:
## - apiGroups:
## - ""
## resources:
## - pods
## verbs:
## - get
## - list
##
rules: []

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
type: ClusterIP
port: 80
port: 3000

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
nginx.ingress.kubernetes.io/rewrite-target: /$2
hosts:
- host: chart-example.local
- host: cloud.foo.io
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
- pathType: Prefix
path: /()(.*)
backend:
service:
name: desktop-frontend
port:
number: 3000
tls:
- secretName: wildcard-cert
hosts:
- cloud.foo.io

resources:
limits:
cpu: 1000m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi

autoscaling:
enabled: false
Expand All @@ -75,8 +91,8 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}
nodeSelector: { }

tolerations: []
tolerations: [ ]

affinity: {}
affinity: { }

0 comments on commit 94af6f0

Please sign in to comment.