Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Deploy on standard k8s environments #13

@jxadro

Description

@jxadro

Hi.

I have tried to deploy it in other k8s installation (IBM Cloud Private) and it works. I had to remove some proprietary configuraion for OpenShift:

I deployed everything on namespace istio-system

Config Map:

apiVersion: v1
kind: ConfigMap
metadata:
 name: kiali
 labels:
   app: kiali
   version: master
data:
 config.yaml: |
   server:
     port: 20001
     static_content_root_directory: /opt/kiali/console
     credentials:
       username: admin
       password: admin

Cluster role:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
 name: kiali
 labels:
   app: kiali
   version: master
rules:
- apiGroups: ["","apps", "autoscaling"]
 attributeRestrictions: null
 resources:
 - configmaps
 - namespaces
 - nodes
 - pods
 - projects
 - services
 - endpoints
 - deployments
 - horizontalpodautoscalers
 verbs:
 - get
 - list
 - watch
- apiGroups: ["config.istio.io"]
 attributeRestrictions: null
 resources:
 - routerules
 - destinationpolicies
 - rules
 - circonuses
 - deniers
 - fluentds
 - kubernetesenvs
 - listcheckers
 - memquotas
 - opas
 - prometheuses
 - rbacs
 - servicecontrols
 - solarwindses
 - stackdrivers
 - statsds
 - stdios
 - apikeys
 - authorizations
 - checknothings
 - kuberneteses
 - listentries
 - logentries
 - metrics
 - quotas
 - reportnothings
 - servicecontrolreports
 verbs:
 - get
 - list
 - watch
- apiGroups: ["networking.istio.io"]
 attributeRestrictions: null
 resources:
 - virtualservices
 - destinationrules
 verbs:
 - get
 - list
 - watch


ClusterRoleBinding:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
 name: kiali
 labels:
   app: kiali
   version: master
roleRef:
 apiGroup: rbac.authorization.k8s.io
 kind: ClusterRole
 name: kiali
subjects:
- kind: ServiceAccount
 name: kiali
 namespace: istio-system


ServiceAccount, Service and Deployment:

apiVersion: v1
kind: ServiceAccount
metadata:
 name: kiali
 labels:
   app: kiali
   version: master
---
apiVersion: v1
kind: Service
metadata:
 name: kiali
 labels:
   app: kiali
   version: master
spec:
 type: NodePort
 ports:
 - name: tcp
   protocol: TCP
   port: 20001
 selector:
   app: kiali
   version: master
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
 name: kiali
 labels:
   app: kiali
   version: master
spec:
 replicas: 1
 selector:
   matchLabels:
     app: kiali
     version: master
 template:
   metadata:
     name: kiali
     labels:
       app: kiali
       version: master
   spec:
     serviceAccount: kiali
     containers:
     - image: kiali/kiali:latest
       name: kiali
       command:
       - "/opt/kiali/kiali"
       - "-config"
       - "/kiali-configuration/config.yaml"
       - "-v"
       - "4"
       env:
       - name: ACTIVE_NAMESPACE
         valueFrom:
           fieldRef:
             fieldPath: metadata.namespace
       volumeMounts:
       - name: kiali-configuration
         mountPath: "/kiali-configuration"
     volumes:
     - name: kiali-configuration
       configMap:
         name: kiali

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions