mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Adding dashboard
This commit is contained in:
parent
e37cc7bbd8
commit
da09f17cb2
2 changed files with 24 additions and 0 deletions
19
manifests/templates/deployment/service.yaml
Normal file
19
manifests/templates/deployment/service.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
apiVersion: ""
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ .Deployment.OperatorDeploymentName }}
|
||||||
|
namespace: {{ .Deployment.Operator.Namespace }}
|
||||||
|
labels:
|
||||||
|
name: {{ .Deployment.OperatorDeploymentName }}
|
||||||
|
app: arango-deployment-operator
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: server
|
||||||
|
port: 8528
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8528
|
||||||
|
selector:
|
||||||
|
name: {{ .Deployment.OperatorDeploymentName }}
|
||||||
|
app: arango-deployment-operator
|
||||||
|
role: leader
|
||||||
|
type: {{ .Deployment.Operator.ServiceType }}
|
|
@ -54,6 +54,7 @@ var (
|
||||||
deploymentTemplateNames = []string{
|
deploymentTemplateNames = []string{
|
||||||
"rbac.yaml",
|
"rbac.yaml",
|
||||||
"deployment.yaml",
|
"deployment.yaml",
|
||||||
|
"service.yaml",
|
||||||
}
|
}
|
||||||
deploymentReplicationTemplateNames = []string{
|
deploymentReplicationTemplateNames = []string{
|
||||||
"rbac.yaml",
|
"rbac.yaml",
|
||||||
|
@ -99,6 +100,7 @@ type CommonOptions struct {
|
||||||
RoleName string
|
RoleName string
|
||||||
RoleBindingName string
|
RoleBindingName string
|
||||||
ServiceAccountName string
|
ServiceAccountName string
|
||||||
|
ServiceType string
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResourceOptions struct {
|
type ResourceOptions struct {
|
||||||
|
@ -158,6 +160,7 @@ func main() {
|
||||||
RoleName: "arango-deployment-operator",
|
RoleName: "arango-deployment-operator",
|
||||||
RoleBindingName: "arango-deployment-operator",
|
RoleBindingName: "arango-deployment-operator",
|
||||||
ServiceAccountName: "default",
|
ServiceAccountName: "default",
|
||||||
|
ServiceType: "ClusterIP",
|
||||||
},
|
},
|
||||||
OperatorDeploymentName: "arango-deployment-operator",
|
OperatorDeploymentName: "arango-deployment-operator",
|
||||||
AllowChaos: options.AllowChaos,
|
AllowChaos: options.AllowChaos,
|
||||||
|
@ -174,6 +177,7 @@ func main() {
|
||||||
RoleName: "arango-deployment-replication-operator",
|
RoleName: "arango-deployment-replication-operator",
|
||||||
RoleBindingName: "arango-deployment-replication-operator",
|
RoleBindingName: "arango-deployment-replication-operator",
|
||||||
ServiceAccountName: "default",
|
ServiceAccountName: "default",
|
||||||
|
ServiceType: "ClusterIP",
|
||||||
},
|
},
|
||||||
OperatorDeploymentName: "arango-deployment-replication-operator",
|
OperatorDeploymentName: "arango-deployment-replication-operator",
|
||||||
},
|
},
|
||||||
|
@ -189,6 +193,7 @@ func main() {
|
||||||
RoleName: "arango-storage-operator",
|
RoleName: "arango-storage-operator",
|
||||||
RoleBindingName: "arango-storage-operator",
|
RoleBindingName: "arango-storage-operator",
|
||||||
ServiceAccountName: "arango-storage-operator",
|
ServiceAccountName: "arango-storage-operator",
|
||||||
|
ServiceType: "ClusterIP",
|
||||||
},
|
},
|
||||||
OperatorDeploymentName: "arango-storage-operator",
|
OperatorDeploymentName: "arango-storage-operator",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue