Skip to content
Why GitHub?
Features
→
Code review
Project management
Integrations
Actions
Packages
Security
Team management
Hosting
Customer stories
→
Security
→
Team
Enterprise
Explore
Explore GitHub
→
Learn & contribute
Topics
Collections
Trending
Learning Lab
Open source guides
Connect with others
Events
Community forum
GitHub Education
Marketplace
Pricing
Plans
→
Compare plans
Contact Sales
Nonprofit
→
Education
→
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub
↵
Jump to
↵
In this repository
All GitHub
↵
Jump to
↵
Sign in
Sign up
haiku
/
infrastructure
Watch
10
Star
5
Fork
7
Code
Issues
8
Pull requests
0
Actions
Security
Insights
Permalink
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also
compare across forks
.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also
compare across forks
.
base repository:
haiku/infrastructure
Choose a Base Repository
haiku/infrastructure
KapiX/infrastructure
korli/infrastructure
mazbrili/infrastructure
mmlr/infrastructure
nielx/infrastructure
pulkomandy/infrastructure
waddlesplash/infrastructure
Nothing to show
base:
90d47889e2d9
head repository:
haiku/infrastructure
Choose a Head Repository
haiku/infrastructure
KapiX/infrastructure
korli/infrastructure
mazbrili/infrastructure
mmlr/infrastructure
nielx/infrastructure
pulkomandy/infrastructure
waddlesplash/infrastructure
Nothing to show
compare:
59de5f51ee12
1
commit
10
files changed
0
commit comments
1
contributor
Commits on Apr 12, 2019
kallisti5
overall: Reorganize k8s folders to make more sense
59de5f5
Unified
Split
Showing
10 changed files
with
14 additions
and
60 deletions
.
+12
−7
k8s/README.md
0
k8s/{ → deployments}/discourse.yml
+2
−1
k8s/{ → deployments}/git.yml
0
k8s/{restore → jobs}/README.md
0
k8s/{restore → jobs}/git-restore-job.yml
0
k8s/{ → providers}/do/README.md
0
k8s/{ → providers}/do/ingress-controller/traefik-deployment.yaml
0
k8s/{ → providers}/do/ingress-controller/traefik-rbac.yaml
0
k8s/{ → providers}/do/persistantstorage.yml
+0
−52
k8s/tools/sshutility.yml
19
k8s/README.md
Show comments
View file
Edit file
Delete file
@@ -6,20 +6,25 @@ docker-compose manifests to Kubernetes.
>
Warning: These are just tests for reference and are not used
>
at this time!
##
Directories
*
deployments - various infrastructure that's deployed and used to serve requests
*
jobs - run-once jobs to accomplish various tasks
*
providers - various support infrastructure needed for various providers.
##
References
*
Kubernetes persistant volume choices
*
https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes
##
Deploying to
a cluster
##
Applying a deployment on
a cluster
```kubectl apply -f service.yml```
##
Tearing down
from a cluster
##
Deleting a deploymeny
from a cluster
```kubectl delete -f service.yml```
> Warning: Deleting a deployment will disconnect the persistant storage
> from the pods, and i've yet to determine how to reattach. Be prepared
> to restore from backups. (run the snapshot job before doing this!)
## Digital Ocean
The "do" folder has things relevant to a deployment using the default Digital Ocean
managed k8s environment.
```kubectl delete -f service.yml```
0
k8s/discourse.yml → k8s/deployments/discourse.yml
Show comments
View file
Edit file
Delete file
File renamed without changes.
3
k8s/git.yml → k8s/deployments/git.yml
Show comments
View file
Edit file
Delete file
@@ -108,7 +108,8 @@ spec:
resources
:
requests
:
storage
:
6Gi
storageClassName
:
do-block-storage-persist
storageClassName
:
do-block-storage
#
storageClassName: do-block-storage-persist
---
apiVersion
:
v1
kind
:
Service
0
k8s/restore/README.md → k8s/jobs/README.md
Show comments
View file
Edit file
Delete file
File renamed without changes.
0
k8s/restore/git-restore-job.yml → k8s/jobs/git-restore-job.yml
Show comments
View file
Edit file
Delete file
File renamed without changes.
0
k8s/do/README.md → k8s/providers/do/README.md
Show comments
View file
Edit file
Delete file
File renamed without changes.
0
...ngress-controller/traefik-deployment.yaml → ...ngress-controller/traefik-deployment.yaml
Show comments
View file
Edit file
Delete file
File renamed without changes.
0
k8s/do/ingress-controller/traefik-rbac.yaml → ...s/do/ingress-controller/traefik-rbac.yaml
Show comments
View file
Edit file
Delete file
File renamed without changes.
0
k8s/do/persistantstorage.yml → k8s/providers/do/persistantstorage.yml
Show comments
View file
Edit file
Delete file
File renamed without changes.
52
k8s/tools/sshutility.yml
Show comments
View file
Edit file
Delete file
Load diff
This file was deleted.
Oops, something went wrong.
Retry
Toggle all file notes
No commit comments for this range
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
This file was deleted.