-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #965 from traPtitech/feat/auto-shutdown
アクセスのない Runtime App を自動で落とせるようにする
- Loading branch information
Showing
40 changed files
with
2,361 additions
and
2,918 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
provider: | ||
name: kubernetes | ||
sessions: | ||
default-duration: 5m | ||
expiration-interval: 20s | ||
logging: | ||
level: trace |
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 |
---|---|---|
|
@@ -26,4 +26,4 @@ spec: | |
value: nette | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
containerPort: 8080 |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ resources: | |
- ns-apps | ||
- ns-system | ||
- registry | ||
- sablier | ||
- traefik |
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,7 @@ | ||
namespace: sablier | ||
resources: | ||
- sablier-service-account.yaml | ||
- sablier-role.yaml | ||
- sablier-role-binding.yaml | ||
- sablier-deployment.yaml | ||
- sablier-service.yaml |
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,31 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: sablier | ||
labels: | ||
app: sablier | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: sablier | ||
template: | ||
metadata: | ||
labels: | ||
app: sablier | ||
spec: | ||
serviceAccountName: sablier | ||
volumes: | ||
- name: project | ||
hostPath: | ||
path: /work | ||
containers: | ||
- name: sablier | ||
image: sablierapp/sablier:1.8 | ||
ports: | ||
- name: http | ||
containerPort: 10000 | ||
volumeMounts: | ||
- name: project | ||
subPath: .local-dev/config/sablier.yaml | ||
mountPath: /etc/sablier/sablier.yaml |
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,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: sablier | ||
|
||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: sablier | ||
subjects: | ||
- kind: ServiceAccount | ||
namespace: sablier | ||
name: sablier |
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,27 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: sablier | ||
rules: | ||
- apiGroups: | ||
- apps | ||
- "" | ||
resources: | ||
- deployments | ||
- statefulsets | ||
verbs: | ||
- get # Retrieve info about specific dep | ||
- list # Events | ||
- watch # Events | ||
- apiGroups: | ||
- apps | ||
- "" | ||
resources: | ||
- deployments/scale | ||
- statefulsets/scale | ||
verbs: | ||
- patch # Scale up and down | ||
- update # Scale up and down | ||
- get # Retrieve info about specific dep | ||
- list # Events | ||
- watch # Events |
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,4 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: sablier |
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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: sablier | ||
|
||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: sablier | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: http |
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
Oops, something went wrong.