-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ns-sablier を導入 #647
Merged
Merged
ns-sablier を導入 #647
+103
−3
Conversation
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
Diff@@ spec.template.spec.volumes.config.configMap.name @@
# apps/v1/Deployment/ns-system/ns-builder
! ± value change
- ns-config-27677k25bb
+ ns-config-5dfc665ck6
@@ spec.template.spec.volumes.config.configMap.name @@
# apps/v1/Deployment/ns-system/ns-gateway
! ± value change
- ns-config-27677k25bb
+ ns-config-5dfc665ck6
@@ spec.template.spec.volumes.config.configMap.name @@
# apps/v1/StatefulSet/ns-system/ns-controller
! ± value change
- ns-config-27677k25bb
+ ns-config-5dfc665ck6
@@ spec.template.spec.volumes.config.configMap.name @@
# apps/v1/StatefulSet/ns-system/ns-gitea-integration
! ± value change
- ns-config-27677k25bb
+ ns-config-5dfc665ck6
@@ spec.template.spec.volumes.config.configMap.name @@
# apps/v1/StatefulSet/ns-system/ns-ssgen
! ± value change
- ns-config-27677k25bb
+ ns-config-5dfc665ck6
@@ data.ns.yaml @@
# v1/ConfigMap/ns-system/ns-config-5dfc665ck6
! ± value change in multiline text (three inserts, three deletions)
privateKeyFile: /keys/id_ed25519
additionalLinks:
- name: Wiki
url: https://wiki.trap.jp/services/NeoShowcase
[121 lines unchanged)]
ipFamilyPolicy: SingleStack
middleware:
sablier:
enable: true
- url: http://sablier.sablier.svc.cluster.local
+ url: http://ns-sablier.ns-system.svc.cluster.local
sessionDuration: 1h
dynamic:
- theme: ghost
+ theme: neoshowcase
blocking:
timeout: 1m
tls:
type: cert-manager
[63 lines unchanged)]
log:
type: loki
loki:
endpoint: http://loki.monitor.svc.cluster.local:3100
- queryTemplate: "{namespace=\"ns-apps\",pod=\"nsapp-{{ .App.ID }}-0\"}"
+ queryTemplate: '{namespace="ns-apps",pod="nsapp-{{ .App.ID }}-0"}'
metrics:
type: prometheus
prometheus:
endpoint: http://victoria-metrics.monitor.svc.cluster.local
[22 lines unchanged)]
adminAPI: http://localhost:2019
docsRoot: /artifacts
controller:
url: http://ns-controller.ns-system.svc.cluster.local:10000
@@ metadata.name @@
# v1/ConfigMap/ns-system/ns-config-5dfc665ck6
! ± value change
- ns-config-27677k25bb
+ ns-config-5dfc665ck6
@@ (root level) @@
# v1/ServiceAccount/ns-system/ns-sablier
! + one document added:
+ ---
+ apiVersion: v1
+ kind: ServiceAccount
+ metadata:
+ name: ns-sablier
+ namespace: ns-system
@@ (root level) @@
# rbac.authorization.k8s.io/v1/ClusterRole/ns-system/ns-sablier
! + one document added:
+ ---
+ apiVersion: rbac.authorization.k8s.io/v1
+ kind: ClusterRole
+ metadata:
+ name: ns-sablier
+ namespace: ns-system
+ rules:
+ - resources:
+ - deployments
+ - statefulsets
+ apiGroups:
+ - apps
+ -
+ verbs:
+ - get
+ - list
+ - watch
+ - resources:
+ - deployments/scale
+ - statefulsets/scale
+ apiGroups:
+ - apps
+ -
+ verbs:
+ - patch
+ - update
+ - get
+ - list
+ - watch
@@ (root level) @@
# rbac.authorization.k8s.io/v1/ClusterRoleBinding/ns-system/ns-sablier
! + one document added:
+ ---
+ apiVersion: rbac.authorization.k8s.io/v1
+ kind: ClusterRoleBinding
+ metadata:
+ name: ns-sablier
+ namespace: ns-system
+ roleRef:
+ name: ns-sablier
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ subjects:
+ - name: ns-sablier
+ kind: ServiceAccount
+ namespace: ns-sablier
@@ (root level) @@
# v1/ConfigMap/ns-system/ns-sablier-c94dc6kkfg
! + one document added:
+ ---
+ apiVersion: v1
+ data:
+ ns-sablier.yaml: |
+ provider:
+ name: kubernetes
+
+ kind: ConfigMap
+ metadata:
+ name: ns-sablier-c94dc6kkfg
+ namespace: ns-system
@@ (root level) @@
# v1/Service/ns-system/ns-sablier
! + one document added:
+ ---
+ apiVersion: v1
+ kind: Service
+ metadata:
+ name: ns-sablier
+ namespace: ns-system
+ spec:
+ type: ClusterIP
+ selector:
+ app: ns-sablier
+ ports:
+ - name: http
+ port: 80
+ targetPort: http
@@ (root level) @@
# apps/v1/Deployment/ns-system/ns-sablier
! + one document added:
+ ---
+ apiVersion: apps/v1
+ kind: Deployment
+ metadata:
+ name: ns-sablier
+ namespace: ns-system
+ spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: ns-sablier
+ template:
+ metadata:
+ labels:
+ app: ns-sablier
+ spec:
+ containers:
+ - name: ns-sablier
+ image: "ghcr.io/traptitech/ns-sablier:1.7.1"
+ ports:
+ - name: http
+ containerPort: 10000
+ volumeMounts:
+ - name: config
+ mountPath: /etc/sablier
+ enableServiceLinks: false
+ volumes:
+ - name: config
+ configMap:
+ name: ns-sablier-c94dc6kkfg
|
pirosiki197
approved these changes
Jan 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとう
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NeoShowcase のアプリローディング画面をカスタマイズするため