mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 15:39:33 -05:00
AB#2394 Change KMS to be deployed as DaemonSet (#69)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
71fb62fe31
commit
f8c01a0298
@ -26,7 +26,7 @@ type kmsDeployment struct {
|
|||||||
Service k8s.Service
|
Service k8s.Service
|
||||||
ClusterRole rbac.ClusterRole
|
ClusterRole rbac.ClusterRole
|
||||||
ClusterRoleBinding rbac.ClusterRoleBinding
|
ClusterRoleBinding rbac.ClusterRoleBinding
|
||||||
Deployment apps.Deployment
|
Deployment apps.DaemonSet
|
||||||
MasterSecret k8s.Secret
|
MasterSecret k8s.Secret
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,19 +117,21 @@ func NewKMSDeployment(csp string, config KMSConfig) *kmsDeployment {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Deployment: apps.Deployment{
|
Deployment: apps.DaemonSet{
|
||||||
TypeMeta: meta.TypeMeta{
|
TypeMeta: meta.TypeMeta{
|
||||||
APIVersion: "apps/v1",
|
APIVersion: "apps/v1",
|
||||||
Kind: "Deployment",
|
Kind: "DaemonSet",
|
||||||
},
|
},
|
||||||
ObjectMeta: meta.ObjectMeta{
|
ObjectMeta: meta.ObjectMeta{
|
||||||
Labels: map[string]string{
|
Labels: map[string]string{
|
||||||
"k8s-app": "kms",
|
"k8s-app": "kms",
|
||||||
|
"component": "kms",
|
||||||
|
"kubernetes.io/cluster-service": "true",
|
||||||
},
|
},
|
||||||
Name: "kms",
|
Name: "kms",
|
||||||
Namespace: kmsNamespace,
|
Namespace: kmsNamespace,
|
||||||
},
|
},
|
||||||
Spec: apps.DeploymentSpec{
|
Spec: apps.DaemonSetSpec{
|
||||||
Selector: &meta.LabelSelector{
|
Selector: &meta.LabelSelector{
|
||||||
MatchLabels: map[string]string{
|
MatchLabels: map[string]string{
|
||||||
"k8s-app": "kms",
|
"k8s-app": "kms",
|
||||||
|
Loading…
Reference in New Issue
Block a user