-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for local k8s deployment (#58)
- Loading branch information
1 parent
419be66
commit 58551b1
Showing
9 changed files
with
127 additions
and
22 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
74 changes: 74 additions & 0 deletions
74
templates/webapi-directclient/local-k8s-deployment-template.yml
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,74 @@ | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: template-deployment | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: template-pod | ||
template: | ||
metadata: | ||
labels: | ||
app: template-pod | ||
spec: | ||
containers: | ||
- name: template-container | ||
image: {image-name} | ||
resources: | ||
limits: | ||
memory: "512Mi" | ||
cpu: "1000m" | ||
requests: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
# env: | ||
# - name: ENV_CLUSTER_AZURE_STORAGE | ||
# valueFrom: | ||
# secretKeyRef: | ||
# name: {storage-secret-name} | ||
# key: connection-string | ||
# - name: ENV_PERSISTENCE_AZURE_TABLE | ||
# valueFrom: | ||
# secretKeyRef: | ||
# name: {storage-secret-name} | ||
# key: connection-string | ||
# - name: ENV_DATA_STORAGE_CONNECTION_STRING | ||
# valueFrom: | ||
# secretKeyRef: | ||
# name: {storage-secret-name} | ||
# key: connection-string | ||
# - name: ENV_DATA_STORAGE_COLLECTION_NAME | ||
# valueFrom: | ||
# secretKeyRef: | ||
# name: {storage-secret-name} | ||
# key: collection-name | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
protocol: TCP | ||
- name: gateway | ||
containerPort: 30000 | ||
protocol: TCP | ||
- name: silo | ||
containerPort: 11111 | ||
protocol: TCP | ||
- name: dashboard | ||
containerPort: 8080 | ||
protocol: TCP | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: template-service | ||
spec: | ||
selector: | ||
app: template-pod | ||
type: LoadBalancer | ||
ports: | ||
- name: dashboard | ||
port: 8080 | ||
targetPort: 8080 | ||
- name: http | ||
port: 80 | ||
targetPort: 80 |
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,19 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: admin-user | ||
namespace: kubernetes-dashboard | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: admin-user | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: admin-user | ||
namespace: kubernetes-dashboard |