mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Cleanup and reorganize vars by environment
This commit is contained in:
parent
51fb76ffb6
commit
f34742ddea
38 changed files with 43 additions and 925 deletions
|
|
@ -1,7 +0,0 @@
|
|||
traefik_serviceaccount: |
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: traefik-ingress-controller
|
||||
namespace: kube-system
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
traefik_daemonset: |
|
||||
---
|
||||
kind: DaemonSet
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: traefik-ingress-controller
|
||||
namespace: kube-system
|
||||
labels:
|
||||
k8s-app: traefik-ingress-lb
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s-app: traefik-ingress-lb
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
k8s-app: traefik-ingress-lb
|
||||
name: traefik-ingress-lb
|
||||
spec:
|
||||
serviceAccountName: traefik-ingress-controller
|
||||
terminationGracePeriodSeconds: 60
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- image: traefik:v1.7-alpine
|
||||
name: traefik-ingress-lb
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /ping
|
||||
port: 8080
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
readinessProbe:
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /ping
|
||||
port: 8080
|
||||
scheme: HTTP
|
||||
periodSeconds: 5
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "64Mi"
|
||||
cpu: "250m"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
hostPort: 80
|
||||
- name: https
|
||||
containerPort: 443
|
||||
hostPort: 443
|
||||
- name: admin
|
||||
containerPort: 8080
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- name: tls
|
||||
mountPath: {{k8s_conf_dir}}
|
||||
readOnly: true
|
||||
args:
|
||||
- --checknewversion=false
|
||||
- --loglevel=INFO
|
||||
- --defaultentrypoints=http,https
|
||||
- --entrypoints=Name:http Address::80 Redirect.EntryPoint:https
|
||||
- --entrypoints=Name:https Address::443 TLS
|
||||
- --etcd=true
|
||||
- --etcd.prefix=/traefik
|
||||
- --etcd.watch=true
|
||||
- --etcd.endpoint={{groups.k8s_etcd|first}}:2379
|
||||
- --etcd.tls=true
|
||||
- --etcd.tls.ca={{k8s_conf_dir}}/ca-etcd.pem
|
||||
- --etcd.tls.cert={{k8s_conf_dir}}/cert-etcd.pem
|
||||
- --etcd.tls.key={{k8s_conf_dir}}/cert-etcd-key.pem
|
||||
- --etcd.useapiv3=true
|
||||
- --kubernetes=true
|
||||
- --kubernetes.watch=true
|
||||
- --kubernetes.namespaces=default
|
||||
- --web=true
|
||||
- --web.readonly
|
||||
- --web.address=:8080
|
||||
- --acme=true
|
||||
- --acme.acmelogging=true
|
||||
- --acme.caserver=https://acme-staging.api.letsencrypt.org/directory
|
||||
- --acme.entrypoint=https
|
||||
- --acme.httpchallenge=true
|
||||
- --acme.httpChallenge.entryPoint=http
|
||||
- --acme.email=letsencrypt.account@banditlair.com
|
||||
- --acme.onhostrule
|
||||
- --acme.storage=/traefik/acme/account
|
||||
volumes:
|
||||
- name: tls
|
||||
secret:
|
||||
secretName: traefik-etcd
|
||||
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
traefik_clusterrole: |
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: traefik-ingress-controller
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- services
|
||||
- endpoints
|
||||
- secrets
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- extensions
|
||||
resources:
|
||||
- ingresses
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
|
||||
traefik_clusterrolebinding: |
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: traefik-ingress-controller
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: traefik-ingress-controller
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: traefik-ingress-controller
|
||||
namespace: kube-system
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
|
||||
kubeadm_enabled: true
|
||||
|
||||
harden_linux_root_password: "{{k8s_scaleway_root_password}}"
|
||||
harden_linux_deploy_user: deploy
|
||||
harden_linux_deploy_user_password: "{{k8s_scaleway_deploy_user_password}}"
|
||||
|
|
@ -23,4 +25,3 @@ harden_linux_sshguard_whitelist:
|
|||
- "212.83.165.111"
|
||||
- "10.3.0.0/24"
|
||||
- "10.200.0.0/16"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue