forked from observatorium/operator
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate both TLS and mTLS manifests
Issue: #57
- Loading branch information
Nir Magnezi
committed
Jun 8, 2020
1 parent
a89822f
commit f3e41c7
Showing
7 changed files
with
193 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: v1 | ||
data: | ||
rbac.yaml: |- | ||
"roleBindings": | ||
- "name": "telemeter" | ||
"roles": | ||
- "read-write" | ||
"subjects": | ||
- "[email protected]" | ||
"roles": | ||
- "name": "read-write" | ||
"permissions": | ||
- "read" | ||
- "write" | ||
"resources": | ||
- "metrics" | ||
"tenants": | ||
- "telemeter" | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/instance: observatorium-api | ||
app.kubernetes.io/name: observatorium-api | ||
app.kubernetes.io/version: master-2020-05-04-v0.1.1-21-gabb9864 | ||
name: observatorium-api | ||
namespace: observatorium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/instance: observatorium-api | ||
app.kubernetes.io/name: observatorium-api | ||
app.kubernetes.io/version: master-2020-05-04-v0.1.1-21-gabb9864 | ||
name: observatorium-api | ||
namespace: observatorium | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/instance: observatorium-api | ||
app.kubernetes.io/name: observatorium-api | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 0 | ||
maxUnavailable: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/instance: observatorium-api | ||
app.kubernetes.io/name: observatorium-api | ||
app.kubernetes.io/version: master-2020-05-04-v0.1.1-21-gabb9864 | ||
spec: | ||
containers: | ||
- args: | ||
- --web.listen=0.0.0.0:8080 | ||
- --web.internal.listen=0.0.0.0:8081 | ||
- --logs.read.endpoint=http://127.0.0.1:3100 | ||
- --logs.write.endpoint=http://127.0.0.1:3100 | ||
- --metrics.read.endpoint=http://127.0.0.1:9091 | ||
- --metrics.write.endpoint=http://127.0.0.1:19291 | ||
- --log.level=warn | ||
- --rbac.config=/etc/observatorium/rbac.yaml | ||
- --tenants.config=/etc/observatorium/tenants.yaml | ||
- --tls-cert-file=./tmp/certs/server.pem | ||
- --tls-private-key-file=./tmp/certs/server.key | ||
- --tls-reload-interval=1m | ||
- --tls-client-ca-file=./tmp/certs/ca.pem | ||
image: quay.io/observatorium/observatorium:master-2020-05-04-v0.1.1-21-gabb9864 | ||
livenessProbe: | ||
failureThreshold: 10 | ||
httpGet: | ||
path: /live | ||
port: 8081 | ||
scheme: HTTP | ||
periodSeconds: 30 | ||
name: observatorium-api | ||
ports: | ||
- containerPort: 8081 | ||
name: internal | ||
- containerPort: 8080 | ||
name: public | ||
readinessProbe: | ||
failureThreshold: 12 | ||
httpGet: | ||
path: /ready | ||
port: 8081 | ||
scheme: HTTP | ||
periodSeconds: 5 | ||
volumeMounts: | ||
- mountPath: /etc/observatorium/rbac.yaml | ||
name: rbac | ||
readOnly: true | ||
subPath: rbac.yaml | ||
- mountPath: /etc/observatorium/tenants.yaml | ||
name: tenants | ||
readOnly: true | ||
subPath: tenants.yaml | ||
volumes: | ||
- configMap: | ||
name: observatorium-api | ||
name: rbac | ||
- name: tenants | ||
secret: | ||
secretName: observatorium-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/instance: observatorium-api | ||
app.kubernetes.io/name: observatorium-api | ||
app.kubernetes.io/version: master-2020-05-04-v0.1.1-21-gabb9864 | ||
name: observatorium-api | ||
namespace: observatorium | ||
stringData: | ||
tenants.yaml: |- | ||
"tenants": | ||
- "id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43" | ||
"name": "telemeter" | ||
"oidc": | ||
"clientID": "telemeter" | ||
"clientSecret": "ov7zikeipai4neih7Chahcae" | ||
"issuerURL": "http://127.0.0.1:5556/dex" | ||
"redirectURL": "http://localhost:8080/oidc/telemeter/callback" | ||
"usernameClaim": "email" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/instance: observatorium-api | ||
app.kubernetes.io/name: observatorium-api | ||
app.kubernetes.io/version: master-2020-05-04-v0.1.1-21-gabb9864 | ||
name: observatorium-api | ||
namespace: observatorium | ||
spec: | ||
ports: | ||
- name: internal | ||
port: 8081 | ||
targetPort: 8081 | ||
- name: public | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/instance: observatorium-api | ||
app.kubernetes.io/name: observatorium-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters