Skip to content

Instantly share code, notes, and snippets.

View Updates-service-definition.yaml
apiVersion: v1
kind: Service
metadata:
name: <name of ew-service>
annotations:
kubernetes.io/ingress.ewservices: <name of the NS-Service>
ladc.a10networks.com/hc-ladc-cluster: <name of the LADC cluster>
ladc.a10networks.com/header-rewrites: true|reqHdrDel|Accept-Encoding|,true|resHdrAdd|X-Proxied-By|LADC,true|resHdrAdd|X-Client-Label|$client_label
kubernetes.io/ingress.ewservices: "<name of ew-service>"
labels:
View SSL-Ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: hc-ingress-http
annotations:
kubernetes.io/ingress.class: "ladc"
ladc.a10networks.com/hc-ladc-cluster: "<ladc_cluster_name>"
ladc.a10networks.com/listen-ports: "80|false|false|false"
ladc.a10networks.com/service-secure-redirect: "true|https://test.greatco.org$request_uri"
spec:
View Service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: a10-ingress-serviceaccount-default-ns
namespace: default
View Role.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: a10-ingress-clusterrole-default-ns
rules:
- apiGroups:
- ""
resources:
- endpoints
- nodes
View secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: secret
type: Opaque
data:
username: <User Name>
password: <Password>
View config-mgmt-api.json
curl 'http://104.198.109.223:9081/api/v1/config' -H 'Pragma: no-
cache' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language:
en-US,en;q=0.8' -H 'Au1thorization: YWRtaW46YnFCSTBkOEY1SWV1e
TNEUToyMGI5YTgwOC00YTE0LTQwOGMtOGQxNi02NGI0MWVhZTliN2U='
-H 'Accept: application/json, text/plain, */*' -
H 'Content-Type: application/json' -H 'Access-Control-Allow-
Origin: *' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS
X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/55.0.2883.95 Safari/537.36' -H 'Cache-Control: no-
cache' -H 'Connection: keep-alive' --data-binary
View microservice_dashboard.json
curl -i -H 'Accept: application/json' -H 'Content-Type:
application/json' -H 'Authorization:Basic YWRtaW46YnFCS
TBkOEY1SWV1eTNEUTplM2Q3MWNiMC0yNmM3LTQ0ZmEtOTkwOC0xMGE2M
jU3ZGRkMGY=' -X GET
http://104.198.109.223:9081/api/v1/cluster/service?app=barista
View RBAC.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: a10-ingress-clusterrole-binding-default-ns
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: a10-ingress-clusterrole-default-ns
subjects:
- kind: ServiceAccount
View Thunder_ingress_resource.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-resource
spec:
rules:
- host: app.a10demo.com
http:
paths:
- path: /
View Thunder_Ingress_controller.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: thunder-ingress-controller
spec:
replicas: 1
template:
metadata:
labels:
app: thunder-ingress-controller
You can’t perform that action at this time.