aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dmaap/charts/dmaap-bus-controller/templates/NOTES.txt
blob: fbab5a3758ed0902f78fe64e70d05a3d352e63ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.hosts }}
  http://{{ . }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
  export NODE_PORT=$(kubectl get --namespace {{ include "common.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.name" . }}-prov)
  export NODE_IP=$(kubectl get nodes --namespace {{ include "common.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
  echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
     NOTE: It may take a few minutes for the LoadBalancer IP to be available.
           You can watch the status of by running 'kubectl get svc -w {{ include "common.fullname" . }}'
  export SERVICE_IP=$(kubectl get svc --namespace {{ include "common.namespace" . }} {{ include "common.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
  echo http://$SERVICE_IP:{{ .Values.service.externalPort }}
{{- else if contains "ClusterIP" .Values.service.type }}
  export POD_NAME=$(kubectl get pods --namespace {{ include "common.namespace" . }} -l "app={{ template "common.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
  echo "Visit http://127.0.0.1:8080 to use your application"
  kubectl port-forward $POD_NAME 8080:{{ .Values.service.internalPort }}
{{- end }}
************************************************************/ import * as React from 'react'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import { WithStyles, withStyles, createStyles, Theme } from '@material-ui/core/styles'; // infra for styling import defaultLogo from '../assets/images/defaultLogo.svg'; const styles = (theme: Theme) => createStyles({ headerLogo: { backgroundImage: "url(" + (theme.design && theme.design.url || defaultLogo) + ")", backgroundColor: theme.palette.primary.main, backgroundRepeat: "no-repeat", backgroundSize: "auto " + (theme.design && theme.design.logoHeight || 70) + "px", height: theme.design && theme.design.logoHeight || 70, width: theme.design ? theme.design.width / theme.design.height * theme.design.logoHeight : 220 } }); type LogoProps = RouteComponentProps<{ id: string }> & WithStyles<typeof styles>; interface ILogoState { windowWidth: number } class LogoComponent extends React.Component<LogoProps, ILogoState> { private hideLogoWhenWindowWidthIsLower: number = 800; constructor(props: LogoProps) { super(props); this.state = { windowWidth: 0 }; this.updateWindowDimensions = this.updateWindowDimensions.bind(this); } componentDidMount(): void { this.updateWindowDimensions(); window.addEventListener('resize', this.updateWindowDimensions); }; componentWillUnmount(): void { window.removeEventListener('resize', this.updateWindowDimensions); }; updateWindowDimensions(): void { this.setState({ windowWidth: window.innerWidth }); } render(): JSX.Element { let div: JSX.Element = <div />; if (this.state.windowWidth >= this.hideLogoWhenWindowWidthIsLower) { div = <div className={this.props.classes.headerLogo} />; } else { console.info([ "Logo hidden, because browser window width (", this.state.windowWidth, "px) is lower thershold (", this.hideLogoWhenWindowWidthIsLower, "px)."].join('')); } return div; } } export const Logo = withStyles(styles)(withRouter(LogoComponent)); export default Logo;