Skip to content

Instantly share code, notes, and snippets.

@henrylawson
Last active February 15, 2018 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henrylawson/ae8d912cc9f1375dd2855d3c817af1c0 to your computer and use it in GitHub Desktop.
Save henrylawson/ae8d912cc9f1375dd2855d3c817af1c0 to your computer and use it in GitHub Desktop.
influxdata/tick-charts (b4911f) deployed on GKE 1.9.2-gke.1
# Copyright 2018 Google Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The helm chart uses paths that are incompatible with the GCE Ingress
# https://github.com/kubernetes/ingress-nginx/issues/555
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: chronograf-ingress
namespace: tick
annotations:
kubernetes.io/ingress.global-static-ip-name: tick-chronograf-ip
kubernetes.io/tls-acme: "true"
spec:
backend:
serviceName: dash-chronograf
servicePort: 80
tls:
- secretName: tick-chronograf-com-tls
hosts:
- tick-chronograf.[MY-DOMAIN]
---
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: tick-chronograf-com-tls
namespace: tick
spec:
secretName: tick-chronograf-com-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
commonName: tick-chronograf.[MY-DOMAIN]
dnsNames:
- tick-chronograf.[MY-DOMAIN]
acme:
config:
- http01:
ingress: chronograf-ingress
domains:
- tick-chronograf.[MY-DOMAIN]
# Copyright 2018 Google Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
server: https://acme-v01.api.letsencrypt.org/directory
email: [REPLACE]
privateKeySecretRef:
name: letsencrypt-prod
http01: {}
# Copyright 2018 Google Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# For Chronograf
service:
type: NodePort
ingress:
enabled: false
persistence:
enabled: true
accessMode: ReadWriteOnce
size: 8Gi
oauth:
enabled: true
token_secret: "[REPLACE]"
google:
enabled: true
client_id: "[REPLACE]"
client_secret: "[REPLACE]"
public_url: "https://tick-chronograf.[MY-DOMAIN]"
domains: "[REPLACE]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment