-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
further ksonnet integration - factored out the raw json
- Loading branch information
1 parent
9274d47
commit 72f900a
Showing
12 changed files
with
727 additions
and
589 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"apiVersion": "extensions/v1beta1", | ||
"kind": "Deployment", | ||
"metadata": { | ||
"name": "seldon-apiserver" | ||
}, | ||
"spec": { | ||
"replicas": 1, | ||
"template": { | ||
"metadata": { | ||
"annotations": { | ||
"prometheus.io/path": "/prometheus", | ||
"prometheus.io/port": "8080", | ||
"prometheus.io/scrape": "true" | ||
}, | ||
"labels": { | ||
"app": "seldon-apiserver-container-app", | ||
"version": "1" | ||
} | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"env": [ | ||
{ | ||
"name": "SELDON_ENGINE_KAFKA_SERVER", | ||
"value": "kafka:9092" | ||
}, | ||
{ | ||
"name": "SELDON_CLUSTER_MANAGER_REDIS_HOST", | ||
"value": "redis" | ||
} | ||
], | ||
"image": "seldonio/apife:{{ .Values.apife.image.tag }}", | ||
"imagePullPolicy": "{{ .Values.apife.image.pull_policy }}", | ||
"name": "seldon-apiserver-container", | ||
"ports": [ | ||
{ | ||
"containerPort": 8080, | ||
"protocol": "TCP" | ||
}, | ||
{ | ||
"containerPort": 5000, | ||
"protocol": "TCP" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"apiVersion": "v1", | ||
"kind": "Service", | ||
"metadata": { | ||
"labels": { | ||
"app": "seldon-apiserver-container-app" | ||
}, | ||
"name": "seldon-apiserver" | ||
}, | ||
"spec": { | ||
"ports": [ | ||
{ | ||
"name": "http", | ||
"nodePort": 30032, | ||
"port": 8080, | ||
"protocol": "TCP", | ||
"targetPort": 8080 | ||
}, | ||
{ | ||
"name": "grpc", | ||
"nodePort": 30033, | ||
"port": 5000, | ||
"protocol": "TCP", | ||
"targetPort": 5000 | ||
} | ||
], | ||
"selector": { | ||
"app": "seldon-apiserver-container-app" | ||
}, | ||
"sessionAffinity": "None", | ||
"type": "{{ .Values.apife_service_type }}" | ||
}, | ||
"status": { | ||
"loadBalancer": {} | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
ksonnet/registry/seldon-core/json/operator-deployment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"kind": "Deployment", | ||
"apiVersion": "apps/v1beta1", | ||
"metadata": { | ||
"name": "seldon-cluster-manager", | ||
"creationTimestamp": null, | ||
"labels": { | ||
"app": "seldon-cluster-manager-server" | ||
} | ||
}, | ||
"spec": { | ||
"replicas": 1, | ||
"selector": { | ||
"matchLabels": { | ||
"app": "seldon-cluster-manager-server" | ||
} | ||
}, | ||
"template": { | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"labels": { | ||
"app": "seldon-cluster-manager-server" | ||
} | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"name": "seldon-cluster-manager-container", | ||
"image": "seldonio/cluster-manager:1234", | ||
"ports": [ | ||
{ | ||
"containerPort": 8080, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"env": [ | ||
{ | ||
"name": "SELDON_CLUSTER_MANAGER_REDIS_HOST", | ||
"value": "redis" | ||
}, | ||
{ | ||
"name": "SELDON_CLUSTER_MANAGER_POD_NAMESPACE", | ||
"valueFrom": { | ||
"fieldRef": { | ||
"apiVersion": "v1", | ||
"fieldPath": "metadata.namespace" | ||
} | ||
} | ||
} | ||
], | ||
"resources": {}, | ||
"terminationMessagePath": "/dev/termination-log", | ||
"terminationMessagePolicy": "File", | ||
"imagePullPolicy": "IfNotPresent" | ||
} | ||
], | ||
"restartPolicy": "Always", | ||
"terminationGracePeriodSeconds": 30, | ||
"dnsPolicy": "ClusterFirst", | ||
"securityContext": {}, | ||
"schedulerName": "default-scheduler" | ||
} | ||
}, | ||
"strategy": { | ||
"type": "RollingUpdate", | ||
"rollingUpdate": { | ||
"maxUnavailable": 1, | ||
"maxSurge": 1 | ||
} | ||
} | ||
}, | ||
"status": {} | ||
} |
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
ksonnet/registry/seldon-core/json/rbac-cluster-binding.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"apiVersion": "rbac.authorization.k8s.io/v1", | ||
"kind": "ClusterRoleBinding", | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"name": "seldon" | ||
}, | ||
"roleRef": { | ||
"apiGroup": "rbac.authorization.k8s.io", | ||
"kind": "ClusterRole", | ||
"name": "cluster-admin" | ||
}, | ||
"subjects": [ | ||
{ | ||
"kind": "ServiceAccount", | ||
"name": "seldon", | ||
"namespace": "default" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
ksonnet/registry/seldon-core/json/rbac-service-account.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"apiVersion": "v1", | ||
"kind": "ServiceAccount", | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"name": "seldon", | ||
"namespace": "default" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"apiVersion": "apps/v1beta1", | ||
"kind": "Deployment", | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"labels": { | ||
"app": "redis-app" | ||
}, | ||
"name": "redis" | ||
}, | ||
"spec": { | ||
"replicas": 1, | ||
"selector": { | ||
"matchLabels": { | ||
"app": "redis-app" | ||
} | ||
}, | ||
"strategy": { | ||
"rollingUpdate": { | ||
"maxSurge": 1, | ||
"maxUnavailable": 1 | ||
}, | ||
"type": "RollingUpdate" | ||
}, | ||
"template": { | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"labels": { | ||
"app": "redis-app" | ||
} | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"image": "redis:4.0.1", | ||
"imagePullPolicy": "IfNotPresent", | ||
"name": "redis-container", | ||
"ports": [ | ||
{ | ||
"containerPort": 6379, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"resources": {}, | ||
"terminationMessagePath": "/dev/termination-log", | ||
"terminationMessagePolicy": "File" | ||
} | ||
], | ||
"dnsPolicy": "ClusterFirst", | ||
"restartPolicy": "Always", | ||
"schedulerName": "default-scheduler", | ||
"securityContext": {}, | ||
"terminationGracePeriodSeconds": 30 | ||
} | ||
} | ||
}, | ||
"status": {} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"apiVersion": "v1", | ||
"kind": "Service", | ||
"metadata": { | ||
"creationTimestamp": null, | ||
"name": "redis" | ||
}, | ||
"spec": { | ||
"ports": [ | ||
{ | ||
"port": 6379, | ||
"protocol": "TCP", | ||
"targetPort": 6379 | ||
} | ||
], | ||
"selector": { | ||
"app": "redis-app" | ||
}, | ||
"sessionAffinity": "None", | ||
"type": "ClusterIP" | ||
}, | ||
"status": { | ||
"loadBalancer": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.