Compare commits

...

2 Commits

Author SHA1 Message Date
05e04afeff Added Go playground 2020-09-01 15:30:27 +01:00
cf2a889e4d Removed SCP archives 2020-08-25 15:25:01 +01:00
3 changed files with 66 additions and 106 deletions

View File

@ -0,0 +1,66 @@
apiVersion: v1
kind: Namespace
metadata:
name: goplayground
---
apiVersion: v1
kind: Service
metadata:
name: goplayground
namespace: goplayground
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
name: web
selector:
app: goplayground
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: goplayground
namespace: goplayground
spec:
replicas: 2
selector:
matchLabels:
app: goplayground
template:
metadata:
labels:
app: goplayground
spec:
containers:
- name: web
image: x1unix/go-playground:1.6.2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8000
name: web
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: goplayground
namespace: goplayground
annotations:
cert-manager.io/cluster-issuer: letsencrypt
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
traefik.ingress.kubernetes.io/redirect-entry-point: https
traefik.ingress.kubernetes.io/redirect-permanent: "true"
spec:
tls:
- hosts:
- go.cluster.fun
secretName: goplayground-ingress
rules:
- host: go.cluster.fun
http:
paths:
- path: /
backend:
serviceName: goplayground
servicePort: 80

View File

@ -1,97 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: scp
---
apiVersion: v1
kind: Secret
metadata:
name: scp-s3
namespace: scp
annotations:
kube-1password: d5dgclm3qrxd4fntivv26ec3ee
kube-1password/vault: Kubernetes
type: Opaque
---
apiVersion: v1
kind: Service
metadata:
name: scp
namespace: scp
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
name: web
selector:
app: scp
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: scp
namespace: scp
spec:
replicas: 2
selector:
matchLabels:
app: scp
template:
metadata:
labels:
app: scp
spec:
containers:
- name: web
image: pottava/s3-proxy:2.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
name: web
env:
- name: AWS_REGION
value: fr-par
- name: AWS_S3_BUCKET
value: scp-archives
- name: AWS_API_ENDPOINT
value: https://s3.fr-par.scw.cloud
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: scp-s3
key: username
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: scp-s3
key: password
resources:
limits:
memory: 200Mi
requests:
memory: 200Mi
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: scp
namespace: scp
annotations:
cert-manager.io/cluster-issuer: letsencrypt
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
traefik.ingress.kubernetes.io/redirect-entry-point: https
traefik.ingress.kubernetes.io/redirect-permanent: "true"
spec:
tls:
- hosts:
- scp-archives.cluster.fun
secretName: scp-ingress
rules:
- host: scp-archives.cluster.fun
http:
paths:
- path: /
backend:
serviceName: scp
servicePort: 80

View File

@ -24,12 +24,3 @@ resource "scaleway_object_bucket" "outline" {
output "outline-bucket_id" {
value = scaleway_object_bucket.outline.id
}
resource "scaleway_object_bucket" "scp-archives" {
name = "scp-archives"
acl = "public-read"
}
output "scp-bucket_id" {
value = scaleway_object_bucket.scp-archives.id
}