Skip to content

Commit

Permalink
Update apiServer config (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Jul 27, 2017
1 parent a1593b2 commit d243758
Show file tree
Hide file tree
Showing 134 changed files with 12,873 additions and 1,887 deletions.
7 changes: 6 additions & 1 deletion chart/kubed/templates/deployment.yaml
Expand Up @@ -23,11 +23,16 @@ spec:
args:
- run
- --v=3
- --api.address=:8080
- --web.address=:56790
image: '{{ .Values.kubed.image }}:{{ .Values.kubed.tag }}'
imagePullPolicy: '{{ .Values.kubed.pullPolicy }}'
ports:
- containerPort: 8080
name: api
protocol: TCP
- containerPort: 56790
name: http
name: web
protocol: TCP
volumeMounts:
- name: config
Expand Down
8 changes: 6 additions & 2 deletions chart/kubed/templates/service.yaml
Expand Up @@ -9,10 +9,14 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
ports:
- name: http
- name: api
port: 8080
protocol: TCP
targetPort: api
- name: web
port: 56790
protocol: TCP
targetPort: http
targetPort: web
selector:
app: "{{ template "name" . }}"
release: "{{ .Release.Name }}"
4 changes: 4 additions & 0 deletions docs/examples/apiserver/config.yaml
@@ -0,0 +1,4 @@
apiServer:
address: :8080
enableReverseIndex: true
enableSearchIndex: true
14 changes: 14 additions & 0 deletions docs/examples/apiserver/kubed-config.yaml
@@ -0,0 +1,14 @@
apiVersion: v1
data:
config.yaml: YXBpU2VydmVyOgogIGFkZHJlc3M6IDo4MDgwCiAgZW5hYmxlUmV2ZXJzZUluZGV4OiB0cnVlCiAgZW5hYmxlU2VhcmNoSW5kZXg6IHRydWUK
kind: Secret
metadata:
creationTimestamp: 2017-07-27T10:47:41Z
labels:
app: kubed
name: kubed-config
namespace: kube-system
resourceVersion: "2187"
selfLink: /api/v1/namespaces/kube-system/secrets/kubed-config
uid: 039ab470-72b9-11e7-a1f7-080027df84b0
type: Opaque
45 changes: 45 additions & 0 deletions docs/examples/apiserver/pod-2-svc.json
@@ -0,0 +1,45 @@
{
"metadata": {},
"items": [
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "kubernetes-dashboard",
"namespace": "kube-system",
"selfLink": "/api/v1/namespaces/kube-system/services/kubernetes-dashboard",
"uid": "a5a6e9d2-72b4-11e7-a1f7-080027df84b0",
"resourceVersion": "78",
"creationTimestamp": "2017-07-27T10:16:25Z",
"labels": {
"addonmanager.kubernetes.io/mode": "Reconcile",
"app": "kubernetes-dashboard",
"kubernetes.io/minikube-addons": "dashboard",
"kubernetes.io/minikube-addons-endpoint": "dashboard"
},
"annotations": {
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{},\"labels\":{\"addonmanager.kubernetes.io/mode\":\"Reconcile\",\"app\":\"kubernetes-dashboard\",\"kubernetes.io/minikube-addons\":\"dashboard\",\"kubernetes.io/minikube-addons-endpoint\":\"dashboard\"},\"name\":\"kubernetes-dashboard\",\"namespace\":\"kube-system\"},\"spec\":{\"ports\":[{\"nodePort\":30000,\"port\":80,\"targetPort\":9090}],\"selector\":{\"app\":\"kubernetes-dashboard\"},\"type\":\"NodePort\"}}\n"
}
},
"spec": {
"ports": [
{
"protocol": "TCP",
"port": 80,
"targetPort": 9090,
"nodePort": 30000
}
],
"selector": {
"app": "kubernetes-dashboard"
},
"clusterIP": "10.0.0.184",
"type": "NodePort",
"sessionAffinity": "None"
},
"status": {
"loadBalancer": {}
}
}
]
}

0 comments on commit d243758

Please sign in to comment.