Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Upgrade node manager to v0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed Apr 8, 2022
1 parent 999997f commit 5e7ed7d
Show file tree
Hide file tree
Showing 16 changed files with 236 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
RELATED_IMAGE_CSIV1_EXTERNAL_RESIZER=quay.io/k8scsi/csi-resizer:v1.1.0
RELATED_IMAGE_STORAGEOS_INIT=storageos/init:v2.1.2
RELATED_IMAGE_STORAGEOS_NODE=soegarots/node:v2-release-v2.7.0-24
RELATED_IMAGE_NODE_MANAGER=storageos/node-manager:v0.0.3
RELATED_IMAGE_NODE_MANAGER=storageos/node-manager:v0.0.4
RELATED_IMAGE_UPGRADE_GUARD=storageos/upgrade-guard:v0.0.4
RELATED_IMAGE_CSIV1_NODE_DRIVER_REGISTRAR=quay.io/k8scsi/csi-node-driver-registrar:v2.1.0
RELATED_IMAGE_CSIV1_LIVENESS_PROBE=quay.io/k8scsi/livenessprobe:v2.2.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
RELATED_IMAGE_CSIV1_EXTERNAL_RESIZER=quay.io/k8scsi/csi-resizer:v1.1.0
RELATED_IMAGE_STORAGEOS_INIT=storageos/init:v2.1.2
RELATED_IMAGE_STORAGEOS_NODE=soegarots/node:v2-release-v2.7.0-24
RELATED_IMAGE_NODE_MANAGER=storageos/node-manager:v0.0.3
RELATED_IMAGE_NODE_MANAGER=storageos/node-manager:v0.0.4
RELATED_IMAGE_UPGRADE_GUARD=storageos/upgrade-guard:v0.0.4
RELATED_IMAGE_CSIV1_NODE_DRIVER_REGISTRAR=quay.io/k8scsi/csi-node-driver-registrar:v2.1.0
RELATED_IMAGE_CSIV1_LIVENESS_PROBE=quay.io/k8scsi/livenessprobe:v2.2.0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ EXTERNAL_ATTACHER_IMAGE ?= quay.io/k8scsi/csi-attacher:v3.1.0
EXTERNAL_RESIZER_IMAGE ?= quay.io/k8scsi/csi-resizer:v1.1.0
INIT_IMAGE ?= storageos/init:v2.1.2
NODE_IMAGE ?= soegarots/node:v2-release-v2.7.0-24
NODE_MANAGER_VERSION ?= v0.0.3
NODE_MANAGER_VERSION ?= v0.0.4
NODE_MANAGER_IMAGE ?= storageos/node-manager:$(NODE_MANAGER_VERSION)
NODE_MANAGER_MANIFESTS_IMAGE ?= storageos/node-manager-manifests:$(NODE_MANAGER_VERSION)
UPGRADE_GUARD_IMAGE ?= storageos/upgrade-guard:v0.0.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data:
RELATED_IMAGE_CSIV1_EXTERNAL_RESIZER: quay.io/k8scsi/csi-resizer:v1.1.0
RELATED_IMAGE_CSIV1_LIVENESS_PROBE: quay.io/k8scsi/livenessprobe:v2.2.0
RELATED_IMAGE_CSIV1_NODE_DRIVER_REGISTRAR: quay.io/k8scsi/csi-node-driver-registrar:v2.1.0
RELATED_IMAGE_NODE_MANAGER: storageos/node-manager:v0.0.3
RELATED_IMAGE_NODE_MANAGER: storageos/node-manager:v0.0.4
RELATED_IMAGE_PORTAL_MANAGER: storageos/portal-manager:v1.0.2
RELATED_IMAGE_STORAGEOS_INIT: storageos/init:v2.1.2
RELATED_IMAGE_STORAGEOS_NODE: soegarots/node:v2-release-v2.7.0-24
Expand Down
2 changes: 1 addition & 1 deletion channels/1.23
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ manifests:
- name: node
version: 2.5.0
- name: node-manager
version: 0.0.3
version: 0.0.4
- name: portal-manager
version: 1.0.2
- name: scheduler
Expand Down
2 changes: 1 addition & 1 deletion channels/1.24
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ manifests:
- name: node
version: 2.5.0
- name: node-manager
version: 0.0.3
version: 0.0.4
- name: portal-manager
version: 1.0.2
- name: scheduler
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app: storageos
app.kubernetes.io/component: node-manager
name: storageos:node-manager
rules:
- apiGroups:
- api.storageos.com
resources:
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- api.storageos.com
resources:
- volumes
verbs:
- get
- list
- watch
- apiGroups:
- storageos.com
resources:
- storageosclusters
verbs:
- get
- list
- watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: storageos
app.kubernetes.io/component: node-manager
name: storageos:proxy:node-manager
rules:
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app: storageos
app.kubernetes.io/component: node-manager
name: storageos:node-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: storageos:node-manager
subjects:
- kind: ServiceAccount
name: storageos-node-manager
namespace: storageos
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app: storageos
app.kubernetes.io/component: node-manager
name: storageos:proxy:node-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: storageos:proxy:node-manager
subjects:
- kind: ServiceAccount
name: storageos-node-manager
namespace: node-manager-system
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

apiVersion: v1
data:
node_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceNamespace: storageos
resourceName: storageos-node-manager
kind: ConfigMap
metadata:
labels:
app: storageos
app.kubernetes.io/component: node-manager
name: storageos-node-manager
namespace: storageos
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: storageos
app.kubernetes.io/component: node-manager
control-plane: storageos-node-manager
name: storageos-node-manager
namespace: storageos
spec:
replicas: 1
selector:
matchLabels:
app: storageos
app.kubernetes.io/component: node-manager
control-plane: storageos-node-manager
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: storageos
app.kubernetes.io/component: node-manager
control-plane: storageos-node-manager
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: storageos
app.kubernetes.io/component: control-plane
topologyKey: kubernetes.io/hostname
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: storageos
app.kubernetes.io/component: node-manager
topologyKey: kubernetes.io/hostname
containers:
- args:
- --config=node_manager_config.yaml
command:
- /node-manager
image: controller:latest
imagePullPolicy: IfNotPresent
name: manager
securityContext:
allowPrivilegeEscalation: false
volumeMounts:
- mountPath: /node_manager_config.yaml
name: storageos-node-manager
subPath: node_manager_config.yaml
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --logtostderr=true
- --v=10
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
name: kube-rbac-proxy
ports:
- containerPort: 8443
name: https
priorityClassName: system-cluster-critical
restartPolicy: Always
securityContext:
runAsUser: 65532
serviceAccountName: storageos-node-manager
terminationGracePeriodSeconds: 30
tolerations:
- key: node.kubernetes.io/disk-pressure
operator: Exists
- key: node.kubernetes.io/memory-pressure
operator: Exists
- key: node.kubernetes.io/network-unavailable
operator: Exists
- key: node.kubernetes.io/not-ready
operator: Exists
- key: node.kubernetes.io/pid-pressure
operator: Exists
- key: node.kubernetes.io/unreachable
operator: Exists
- key: node.kubernetes.io/unschedulable
operator: Exists
topologySpreadConstraints:
- labelSelector:
matchLabels:
app: storageos
app.kubernetes.io/component: node-manager
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
volumes:
- configMap:
name: storageos-node-manager
name: storageos-node-manager
8 changes: 8 additions & 0 deletions channels/packages/node-manager/0.0.4/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resources:
- serviceaccount-storageos-node-manager.yaml
- clusterrole-storageos-node-manager.yaml
- clusterrole-storageos-proxy-node-manager.yaml
- clusterrolebinding-storageos-node-manager.yaml
- clusterrolebinding-storageos-proxy-node-manager.yaml
- configmap-storageos-node-manager.yaml
- deployment-storageos-node-manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: storageos
app.kubernetes.io/component: node-manager
name: storageos-node-manager
namespace: storageos
2 changes: 1 addition & 1 deletion channels/stable
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ manifests:
- name: node
version: 2.5.0
- name: node-manager
version: 0.0.3
version: 0.0.4
- name: portal-manager
version: 1.0.2
- name: scheduler
Expand Down
2 changes: 1 addition & 1 deletion config/manager/related_images_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RELATED_IMAGE_CSIV1_EXTERNAL_ATTACHER_V3=quay.io/k8scsi/csi-attacher:v3.1.0
RELATED_IMAGE_CSIV1_EXTERNAL_RESIZER=quay.io/k8scsi/csi-resizer:v1.1.0
RELATED_IMAGE_STORAGEOS_INIT=storageos/init:v2.1.2
RELATED_IMAGE_STORAGEOS_NODE=soegarots/node:v2-release-v2.7.0-24
RELATED_IMAGE_NODE_MANAGER=storageos/node-manager:v0.0.3
RELATED_IMAGE_NODE_MANAGER=storageos/node-manager:v0.0.4
RELATED_IMAGE_UPGRADE_GUARD=storageos/upgrade-guard:v0.0.4
RELATED_IMAGE_CSIV1_NODE_DRIVER_REGISTRAR=quay.io/k8scsi/csi-node-driver-registrar:v2.1.0
RELATED_IMAGE_CSIV1_LIVENESS_PROBE=quay.io/k8scsi/livenessprobe:v2.2.0

0 comments on commit 5e7ed7d

Please sign in to comment.