1
0
Fork 0
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:
Ewout Prangsma 2018-06-29 15:51:39 +02:00
parent e37cc7bbd8
commit da09f17cb2
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698
2 changed files with 24 additions and 0 deletions

View 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 }}

View file

@ -54,6 +54,7 @@ var (
deploymentTemplateNames = []string{
"rbac.yaml",
"deployment.yaml",
"service.yaml",
}
deploymentReplicationTemplateNames = []string{
"rbac.yaml",
@ -99,6 +100,7 @@ type CommonOptions struct {
RoleName string
RoleBindingName string
ServiceAccountName string
ServiceType string
}
type ResourceOptions struct {
@ -158,6 +160,7 @@ func main() {
RoleName: "arango-deployment-operator",
RoleBindingName: "arango-deployment-operator",
ServiceAccountName: "default",
ServiceType: "ClusterIP",
},
OperatorDeploymentName: "arango-deployment-operator",
AllowChaos: options.AllowChaos,
@ -174,6 +177,7 @@ func main() {
RoleName: "arango-deployment-replication-operator",
RoleBindingName: "arango-deployment-replication-operator",
ServiceAccountName: "default",
ServiceType: "ClusterIP",
},
OperatorDeploymentName: "arango-deployment-replication-operator",
},
@ -189,6 +193,7 @@ func main() {
RoleName: "arango-storage-operator",
RoleBindingName: "arango-storage-operator",
ServiceAccountName: "arango-storage-operator",
ServiceType: "ClusterIP",
},
OperatorDeploymentName: "arango-storage-operator",
},