Skip to content

Commit

Permalink
Add install templates
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg committed Jun 17, 2022
1 parent 4f20cbd commit 50720c4
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config-starter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kita
data:
application.yml: |
kita:
issuers:
letsencrypt-staging:
directory-url: https://acme-staging-v02.api.letsencrypt.org/directory
emails:
- CONFIGURE_EMAIL
terms-of-service-agreed: SET_TO_TRUE
letsencrypt-prod:
directory-url: https://acme-v02.api.letsencrypt.org/directory
emails:
- CONFIGURE_EMAIL
terms-of-service-agreed: SET_TO_TRUE
87 changes: 87 additions & 0 deletions install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kita
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kita
rules:
- apiGroups:
- ""
resources:
- secrets
- services
verbs:
- list
- watch
- get
- apiGroups:
- networking.k8s.io/v1
resources:
- ingresses
verbs:
- create
- list
- watch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kita
subjects:
- kind: ServiceAccount
name: kita
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kita
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kita
labels:
app: kita
spec:
replicas: 1
template:
metadata:
name: kita
labels:
app: kita
spec:
serviceAccountName: kita
containers:
- name: app
image: ghcr.io/itzg/kita
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /application/config
name: configs
volumes:
- name: configs
configMap:
name: kita
selector:
matchLabels:
app: kita
---
apiVersion: v1
kind: Service
metadata:
name: kita
labels:
app: kita
acme.itzg.github.io/role: solver
spec:
selector:
app: kita
ports:
- port: 8080
name: http
type: NodePort

0 comments on commit 50720c4

Please sign in to comment.