Skip to content

Commit 30fc1be

Browse files
committed
Merge remote-tracking branch 'upstream/main' into add-vendor-stack
2 parents a94f0c0 + 8defced commit 30fc1be

File tree

3 files changed

+87
-1
lines changed

3 files changed

+87
-1
lines changed

charts/portainer/values.yaml.gotmpl

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Default values for adminer.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
5+
replicaCount: 1
6+
7+
image:
8+
repository: portainer/portainer-ce
9+
pullPolicy: IfNotPresent
10+
11+
imagePullSecrets: []
12+
nameOverride: ""
13+
fullnameOverride: ""
14+
15+
serviceAccount:
16+
# Annotations to add to the service account
17+
annotations: {}
18+
# The name of the service account to use.
19+
# If not set and create is true, a name is generated using the fullname template
20+
name: portainer-sa-clusteradmin
21+
22+
podAnnotations: {}
23+
podLabels: {}
24+
25+
podSecurityContext:
26+
{}
27+
28+
securityContext:
29+
{}
30+
31+
service:
32+
type: "ClusterIP"
33+
port: 9000
34+
35+
ingress:
36+
enabled: true
37+
className: ""
38+
annotations:
39+
namespace: {{ .Release.Namespace }}
40+
cert-manager.io/cluster-issuer: "cert-issuer"
41+
traefik.ingress.kubernetes.io/router.entrypoints: websecure
42+
traefik.ingress.kubernetes.io/router.middlewares: traefik-traefik-basic-auth@kubernetescrd,traefik-portainer-strip-prefix@kubernetescrd # namespace + middleware name
43+
tls:
44+
- hosts:
45+
- {{ requiredEnv "K8S_MONITORING_FQDN" }}
46+
secretName: monitoring-tls
47+
hosts:
48+
- host: {{ requiredEnv "K8S_MONITORING_FQDN" }}
49+
paths:
50+
- path: /portainer
51+
pathType: Prefix
52+
backend:
53+
service:
54+
name: portainer
55+
port:
56+
number: 9000
57+
58+
59+
resources:
60+
limits:
61+
cpu: 2
62+
memory: 1024Mi
63+
requests:
64+
cpu: 0.1
65+
memory: 128Mi
66+
67+
nodeSelector:
68+
ops: "true"

charts/traefik/values.insecure.yaml.gotmpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ extraObjects:
2929
spec:
3030
basicAuth:
3131
secret: traefik-authorized-users # https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
32+
- apiVersion: traefik.io/v1alpha1
33+
kind: Middleware
34+
metadata:
35+
name: portainer-strip-prefix
36+
namespace: {{.Release.Namespace}}
37+
spec:
38+
stripPrefix:
39+
prefixes:
40+
- /portainer
3241
- apiVersion: networking.k8s.io/v1
3342
kind: Ingress
3443
metadata:

charts/traefik/values.secure.yaml.gotmpl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,19 @@ extraObjects:
3535
kind: Middleware
3636
metadata:
3737
name: traefik-basic-auth
38+
namespace: {{.Release.Namespace}}
3839
spec:
3940
basicAuth:
4041
secret: traefik-authorized-users # https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
41-
42+
- apiVersion: traefik.io/v1alpha1
43+
kind: Middleware
44+
metadata:
45+
name: portainer-strip-prefix
46+
namespace: {{.Release.Namespace}}
47+
spec:
48+
stripPrefix:
49+
prefixes:
50+
- /portainer
4251
- apiVersion: traefik.io/v1alpha1
4352
kind: Middleware
4453
metadata:

0 commit comments

Comments
 (0)