-
Notifications
You must be signed in to change notification settings - Fork 0
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
Mrc-4908 k8s setup #1
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
eb5618b
feat: kubernetes setup
absternator 69d5f98
feat: ssl ingress + persistance local
absternator 4fc22d8
feat: add start script
absternator 6e4e6c7
docs: update readme
absternator 7badd77
chore: comments for error + persistance
absternator 1078b51
fix: longhorn and update scripts
absternator 55e8329
update readme
absternator 37c5cfd
chore: remove dead code
absternator 472a689
update readme extras
absternator 31b18a4
refactor: PR comments
absternator a6f2fa5
Update configure_ssl script to use vault k8s auth
absternator 16ad36d
cleanups + add gha
absternator 8b19073
gha update
absternator d5fd1c4
remove PR into main docker hub push
absternator bc066f3
fix krsync issue
absternator 9a9c8f0
feat: cleanup kustomize for testing and prod
absternator 526208e
readme updae for local
absternator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build and push Shiny server image | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Build and push | ||
run: shiny/build-and-push |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
apache/ssl | ||
k8s/ssl |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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,38 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: shiny-deploy | ||
labels: | ||
app: shiny | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: shiny | ||
template: | ||
metadata: | ||
labels: | ||
app: shiny | ||
spec: | ||
initContainers: | ||
- name: init-shiny | ||
image: busybox:1.28 | ||
command: ["sh", "-c", "mkdir -p /shiny/logs /shiny/apps"] | ||
volumeMounts: | ||
- name: shiny-data | ||
mountPath: /shiny | ||
containers: | ||
- name: shiny | ||
image: mrcide/shiny-server:dev | ||
volumeMounts: | ||
- name: shiny-data | ||
mountPath: /shiny | ||
# todo: create appropriate resource requests | ||
# resources: | ||
# requests: | ||
# memory: "128Mi" | ||
# cpu: "250m" | ||
volumes: | ||
- name: shiny-data | ||
persistentVolumeClaim: | ||
claimName: shiny-pvc |
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,21 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress-shiny | ||
annotations: | ||
nginx.ingress.kubernetes.io/affinity: "cookie" | ||
nginx.ingress.kubernetes.io/session-cookie-name: "shinycookie" | ||
nginx.ingress.kubernetes.io/session-cookie-expires: "172800" | ||
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: shiny-svc | ||
port: | ||
number: 3838 |
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,12 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
metadata: | ||
name: shiny | ||
|
||
namespace: twinkle # assume this namespace exists | ||
|
||
resources: | ||
- persistence.yaml | ||
- deployment.yaml | ||
- service.yaml | ||
- ingress.yaml |
Oops, something went wrong.
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.
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.
Is this in seconds? 48 hours? Seems reasonable
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.
yup in seconds... 48 hours