Skip to content

Instantly share code, notes, and snippets.

@jonauman
jonauman / gitea-svc.yml
Created February 24, 2020 16:38
Expose gitea to host
kind: Service
apiVersion: v1
metadata:
name: gitea-service
spec:
selector:
app: gitea
ports:
- name: gitea-http
port: 3000
@jonauman
jonauman / Dockerfile
Created February 24, 2020 15:41
gitea_arm_dockerfile
FROM arm32v7/ubuntu
ARG VERSION=1.11.1
ARG DEBIAN_FRONTEND=noninteractive
RUN ln -fs /usr/share/zoneinfo/Europe/London /etc/localtime
RUN apt-get update && apt-get install ca-certificates sqlite git curl gettext tzdata -y
RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN addgroup --system --gid 1000 git && adduser --system --home /data/git --shell /bin/bash --uid 1000 --gid 1000 git && echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
---
apiVersion: v1
kind: Pod
metadata:
name: test-kitchen
namespace: default
labels:
name: test-kitchen
spec:
@jonauman
jonauman / cf
Last active July 3, 2019 07:57
AWSTemplateFormatVersion: 2010-09-09
Parameters:
AppName:
Description: Name of App
Type: String
EnvName:
Description: Name of environment
---
apiVersion: v1
kind: Service
metadata:
name: traefik-services
namespace: public
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
@jonauman
jonauman / traefik-clusterRole.yaml
Created December 3, 2018 14:33
traefik clusterRole
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- services
@jonauman
jonauman / traefik-deployment.yaml
Last active December 3, 2018 16:54
traefik deployment
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: public
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:

Keybase proof

I hereby claim:

  • I am jonauman on github.
  • I am jauman (https://keybase.io/jauman) on keybase.
  • I have a public key ASCQNPMzDnImuqN1IlhuV6edizID7pTtkhJbvJy-RmIHeQo

To claim this, I am signing this object: