Last active
August 30, 2017 20:06
-
-
Save fabiocruzcoelho/9bda832ac9b8f1dfa003a28ddb0b4700 to your computer and use it in GitHub Desktop.
Modelo de Service e ReplicationControl Kubernetes
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: grafana | |
namespace: fabio | |
labels: | |
app: grafana | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 3000 | |
selector: | |
name: grafana | |
type: LoadBalancer | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: grafana | |
namespace: fabio | |
labels: | |
app: grafana | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
name: grafana | |
app: grafana | |
spec: | |
containers: | |
- name: grafana | |
image: monitoringartist/grafana-xxl | |
ports: | |
- containerPort: 3000 | |
volumeMounts: | |
- name: grafana-persistent-storage | |
mountPath: /var/lib/grafana | |
volumes: | |
- name: grafana-persistent-storage | |
persistentVolumeClaim: | |
claimName: grafana-pvc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment