Manifest and Helm Updates for EE-2.10.0 (#78)

* Manifest and Helm Updates for EE-2.10.0

* Create portainer-agent-ee210-k8s-nodeport.yaml

* updates for ee2.10

* manifest files

Co-authored-by: Ubuntu <ubuntu@ip-172-31-17-39.ec2.internal>
pull/83/head portainer-1.0.19
samdulam 2021-11-16 09:02:38 +13:00 committed by GitHub
parent f6ca6c01b4
commit 56ee20b679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 222 additions and 63 deletions

0
.ci/scripts/generate-portainer-manifests-from-chart.sh Normal file → Executable file
View File

View File

@ -16,11 +16,11 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
version: 1.0.18 version: 1.0.19
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. # incremented each time you make changes to the application.
appVersion: ce-latest-ee-2.7.0 appVersion: ce-latest-ee-2.10.0
sources: sources:
- https://github.com/portainer/k8s - https://github.com/portainer/k8s

View File

@ -62,26 +62,12 @@ spec:
- name: http - name: http
containerPort: 9000 containerPort: 9000
protocol: TCP protocol: TCP
{{- if not .Values.enterpriseEdition.enabled }}
- name: https - name: https
containerPort: 9443 containerPort: 9443
protocol: TCP protocol: TCP
{{- end }}
- name: tcp-edge - name: tcp-edge
containerPort: 8000 containerPort: 8000
protocol: TCP protocol: TCP
{{- if .Values.enterpriseEdition.enabled }}
livenessProbe:
httpGet:
path: /
port: 9000
scheme: HTTP
readinessProbe:
httpGet:
path: /
port: 9000
scheme: HTTP
{{- else }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
@ -91,7 +77,6 @@ spec:
httpGet: httpGet:
path: / path: /
port: 9443 port: 9443
scheme: HTTPS scheme: HTTPS
{{- end }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}

View File

@ -21,8 +21,7 @@ spec:
name: http name: http
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.httpNodePort))) }} {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.httpNodePort))) }}
nodePort: {{ .Values.service.httpNodePort}} nodePort: {{ .Values.service.httpNodePort}}
{{- end }} {{- end }}
{{- if not .Values.enterpriseEdition.enabled }}
- port: {{ .Values.service.httpsPort }} - port: {{ .Values.service.httpsPort }}
targetPort: 9443 targetPort: 9443
protocol: TCP protocol: TCP
@ -30,7 +29,6 @@ spec:
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.httpsNodePort))) }} {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.httpsNodePort))) }}
nodePort: {{ .Values.service.httpsNodePort}} nodePort: {{ .Values.service.httpsNodePort}}
{{- end }} {{- end }}
{{- end }}
{{- if (eq .Values.service.type "NodePort") }} {{- if (eq .Values.service.type "NodePort") }}
- port: {{ .Values.service.edgeNodePort }} - port: {{ .Values.service.edgeNodePort }}
targetPort: {{ .Values.service.edgeNodePort }} targetPort: {{ .Values.service.edgeNodePort }}

View File

@ -9,7 +9,7 @@ enterpriseEdition:
enabled: false enabled: false
image: image:
repository: portainer/portainer-ee repository: portainer/portainer-ee
tag: 2.7.0 tag: 2.10.0
pullPolicy: Always pullPolicy: Always
image: image:

View File

@ -0,0 +1,80 @@
apiVersion: v1
kind: Namespace
metadata:
name: portainer
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: portainer-sa-clusteradmin
namespace: portainer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: portainer-crb-clusteradmin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: portainer-sa-clusteradmin
namespace: portainer
---
apiVersion: v1
kind: Service
metadata:
name: portainer-agent
namespace: portainer
spec:
type: LoadBalancer
selector:
app: portainer-agent
ports:
- name: http
protocol: TCP
port: 9001
targetPort: 9001
---
apiVersion: v1
kind: Service
metadata:
name: portainer-agent-headless
namespace: portainer
spec:
clusterIP: None
selector:
app: portainer-agent
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: portainer-agent
namespace: portainer
spec:
selector:
matchLabels:
app: portainer-agent
template:
metadata:
labels:
app: portainer-agent
spec:
serviceAccountName: portainer-sa-clusteradmin
containers:
- name: portainer-agent
image: portainer/agent:2.10.0
imagePullPolicy: Always
env:
- name: LOG_LEVEL
value: INFO
- name: AGENT_CLUSTER_ADDR
value: "portainer-agent-headless"
- name: KUBERNETES_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- containerPort: 9001
protocol: TCP

View File

@ -0,0 +1,81 @@
apiVersion: v1
kind: Namespace
metadata:
name: portainer
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: portainer-sa-clusteradmin
namespace: portainer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: portainer-crb-clusteradmin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: portainer-sa-clusteradmin
namespace: portainer
---
apiVersion: v1
kind: Service
metadata:
name: portainer-agent
namespace: portainer
spec:
type: NodePort
selector:
app: portainer-agent
ports:
- name: http
protocol: TCP
port: 9001
targetPort: 9001
nodePort: 30778
---
apiVersion: v1
kind: Service
metadata:
name: portainer-agent-headless
namespace: portainer
spec:
clusterIP: None
selector:
app: portainer-agent
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: portainer-agent
namespace: portainer
spec:
selector:
matchLabels:
app: portainer-agent
template:
metadata:
labels:
app: portainer-agent
spec:
serviceAccountName: portainer-sa-clusteradmin
containers:
- name: portainer-agent
image: portainer/agent:2.4.0
imagePullPolicy: Always
env:
- name: LOG_LEVEL
value: INFO
- name: AGENT_CLUSTER_ADDR
value: "portainer-agent-headless"
- name: KUBERNETES_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- containerPort: 9001
protocol: TCP

View File

@ -14,7 +14,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
--- ---
# Source: portainer/templates/pvc.yaml # Source: portainer/templates/pvc.yaml
kind: "PersistentVolumeClaim" kind: "PersistentVolumeClaim"
@ -28,7 +28,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
accessModes: accessModes:
- "ReadWriteOnce" - "ReadWriteOnce"
@ -44,7 +44,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
@ -64,7 +64,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
type: NodePort type: NodePort
ports: ports:
@ -72,7 +72,12 @@ spec:
targetPort: 9000 targetPort: 9000
protocol: TCP protocol: TCP
name: http name: http
nodePort: 30777 nodePort: 30777
- port: 9443
targetPort: 9443
protocol: TCP
name: https
nodePort: 30779
- port: 30776 - port: 30776
targetPort: 30776 targetPort: 30776
protocol: TCP protocol: TCP
@ -92,7 +97,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
@ -116,7 +121,7 @@ spec:
claimName: portainer claimName: portainer
containers: containers:
- name: portainer - name: portainer
image: "portainer/portainer-ee:2.7.0" image: "portainer/portainer-ee:2.10.0"
imagePullPolicy: Always imagePullPolicy: Always
args: args:
- '--tunnel-port=30776' - '--tunnel-port=30776'
@ -126,20 +131,23 @@ spec:
ports: ports:
- name: http - name: http
containerPort: 9000 containerPort: 9000
protocol: TCP protocol: TCP
- name: https
containerPort: 9443
protocol: TCP
- name: tcp-edge - name: tcp-edge
containerPort: 8000 containerPort: 8000
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
port: 9000 port: 9443
scheme: HTTP scheme: HTTPS
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /
port: 9000 port: 9443
scheme: HTTP scheme: HTTPS
resources: resources:
{} {}

View File

@ -14,7 +14,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
--- ---
# Source: portainer/templates/pvc.yaml # Source: portainer/templates/pvc.yaml
kind: "PersistentVolumeClaim" kind: "PersistentVolumeClaim"
@ -28,7 +28,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
accessModes: accessModes:
- "ReadWriteOnce" - "ReadWriteOnce"
@ -44,7 +44,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
@ -64,14 +64,18 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
type: LoadBalancer type: LoadBalancer
ports: ports:
- port: 9000 - port: 9000
targetPort: 9000 targetPort: 9000
protocol: TCP protocol: TCP
name: http name: http
- port: 9443
targetPort: 9443
protocol: TCP
name: https
- port: 8000 - port: 8000
targetPort: 8000 targetPort: 8000
protocol: TCP protocol: TCP
@ -90,7 +94,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
@ -114,7 +118,7 @@ spec:
claimName: portainer claimName: portainer
containers: containers:
- name: portainer - name: portainer
image: "portainer/portainer-ee:2.7.0" image: "portainer/portainer-ee:2.10.0"
imagePullPolicy: Always imagePullPolicy: Always
args: args:
volumeMounts: volumeMounts:
@ -123,20 +127,23 @@ spec:
ports: ports:
- name: http - name: http
containerPort: 9000 containerPort: 9000
protocol: TCP protocol: TCP
- name: https
containerPort: 9443
protocol: TCP
- name: tcp-edge - name: tcp-edge
containerPort: 8000 containerPort: 8000
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
port: 9000 port: 9443
scheme: HTTP scheme: HTTPS
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /
port: 9000 port: 9443
scheme: HTTP scheme: HTTPS
resources: resources:
{} {}

View File

@ -14,7 +14,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
--- ---
# Source: portainer/templates/pvc.yaml # Source: portainer/templates/pvc.yaml
kind: "PersistentVolumeClaim" kind: "PersistentVolumeClaim"
@ -28,7 +28,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
accessModes: accessModes:
- "ReadWriteOnce" - "ReadWriteOnce"
@ -44,7 +44,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
@ -64,14 +64,14 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
type: LoadBalancer type: LoadBalancer
ports: ports:
- port: 9000 - port: 9000
targetPort: 9000 targetPort: 9000
protocol: TCP protocol: TCP
name: http name: http
- port: 9443 - port: 9443
targetPort: 9443 targetPort: 9443
protocol: TCP protocol: TCP
@ -94,7 +94,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
@ -130,7 +130,7 @@ spec:
protocol: TCP protocol: TCP
- name: https - name: https
containerPort: 9443 containerPort: 9443
protocol: TCP protocol: TCP
- name: tcp-edge - name: tcp-edge
containerPort: 8000 containerPort: 8000
protocol: TCP protocol: TCP
@ -143,7 +143,7 @@ spec:
httpGet: httpGet:
path: / path: /
port: 9443 port: 9443
scheme: HTTPS scheme: HTTPS
resources: resources:
{} {}

View File

@ -14,7 +14,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
--- ---
# Source: portainer/templates/pvc.yaml # Source: portainer/templates/pvc.yaml
kind: "PersistentVolumeClaim" kind: "PersistentVolumeClaim"
@ -28,7 +28,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
accessModes: accessModes:
- "ReadWriteOnce" - "ReadWriteOnce"
@ -44,7 +44,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
@ -64,7 +64,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
type: NodePort type: NodePort
ports: ports:
@ -72,7 +72,7 @@ spec:
targetPort: 9000 targetPort: 9000
protocol: TCP protocol: TCP
name: http name: http
nodePort: 30777 nodePort: 30777
- port: 9443 - port: 9443
targetPort: 9443 targetPort: 9443
protocol: TCP protocol: TCP
@ -97,7 +97,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "ce-latest-ee-2.7.0" app.kubernetes.io/version: "ce-latest-ee-2.10.0"
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
@ -134,7 +134,7 @@ spec:
protocol: TCP protocol: TCP
- name: https - name: https
containerPort: 9443 containerPort: 9443
protocol: TCP protocol: TCP
- name: tcp-edge - name: tcp-edge
containerPort: 8000 containerPort: 8000
protocol: TCP protocol: TCP
@ -147,7 +147,7 @@ spec:
httpGet: httpGet:
path: / path: /
port: 9443 port: 9443
scheme: HTTPS scheme: HTTPS
resources: resources:
{} {}