Created
September 19, 2018 20:27
-
-
Save bianpengyuan/5efe373dbf5db08b7c10c1e11b697106 to your computer and use it in GitHub Desktop.
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: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRole | |
metadata: | |
name: pinger-istio-system | |
namespace: istio-system | |
labels: | |
app: pinger | |
rules: | |
- apiGroups: [""] | |
resources: ["services"] | |
verbs: ["get", "list", "watch"] | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: pinger-service-account | |
namespace: istio-system | |
labels: | |
app: pinger | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: pinger-istio-system | |
labels: | |
app: pinger | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: pinger-istio-system | |
subjects: | |
- kind: ServiceAccount | |
name: pinger-service-account | |
namespace: istio-system | |
--- | |
################################################################################################## | |
# Pinger | |
################################################################################################## | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: pinger | |
namespace: istio-system | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: pinger | |
spec: | |
serviceAccountName: pinger-service-account | |
containers: | |
- name: pinger | |
image: gcr.io/istio-stackdriver/pinger:bookinfo | |
imagePullPolicy: Always | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment