Skip to content

Commit 0ef2c19

Browse files
authored
Merge pull request #727 from sjberman/docs
Config example for credentials directory
2 parents 315ba18 + 26b24b2 commit 0ef2c19

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

docs/README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ BIG-IP system
174174
It is important to not project the Secret keys to specific paths, as the controller looks for the "username",
175175
"password", and "url" files directly within the credentials directory.
176176

177+
See :fonticon:`fa fa-download` :download:`example-bigip-credentials-directory.yaml </_static/config_examples/example-bigip-credentials-directory.yaml>`
178+
for a deployment example.
179+
177180
.. _vxlan configs:
178181

179182
VXLAN
@@ -746,6 +749,7 @@ Example Configuration Files
746749

747750
- :fonticon:`fa fa-download` :download:`sample-k8s-bigip-ctlr-secrets.yaml </_static/config_examples/sample-k8s-bigip-ctlr-secrets.yaml>`
748751
- :fonticon:`fa fa-download` :download:`sample-bigip-credentials-secret.yaml </_static/config_examples/sample-bigip-credentials-secret.yaml>`
752+
- :fonticon:`fa fa-download` :download:`example-bigip-credentials-directory.yaml </_static/config_examples/example-bigip-credentials-directory.yaml>`
749753
- :fonticon:`fa fa-download` :download:`example-vs-resource.configmap.yaml </_static/config_examples/example-vs-resource.configmap.yaml>`
750754
- :fonticon:`fa fa-download` :download:`example-vs-resource-udp.configmap.yaml </_static/config_examples/example-vs-resource-udp.configmap.yaml>`
751755
- :fonticon:`fa fa-download` :download:`example-vs-resource.json </_static/config_examples/example-vs-resource.json>`
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Sample configuration for k8s-bigip-ctlr. BIG-IP configuration is mounted
2+
# from the secret store into the controller.
3+
apiVersion: extensions/v1beta1
4+
kind: Deployment
5+
metadata:
6+
name: k8s-bigip-ctlr
7+
namespace: kube-system
8+
spec:
9+
replicas: 1
10+
template:
11+
metadata:
12+
name: k8s-bigip-ctlr
13+
labels:
14+
app: k8s-bigip-ctlr
15+
spec:
16+
serviceAccountName: bigip-ctlr-serviceaccount
17+
containers:
18+
- name: k8s-bigip-ctlr
19+
image: "f5networks/k8s-bigip-ctlr"
20+
command: ["/app/bin/k8s-bigip-ctlr"]
21+
args: ["--running-in-cluster=true",
22+
"--credentials-directory=/tmp/creds",
23+
"--bigip-partition=k8s",
24+
"--namespace=default",
25+
]
26+
volumeMounts:
27+
- name: bigip-creds
28+
mountPath: "/tmp/creds"
29+
readOnly: true
30+
volumes:
31+
- name: bigip-creds
32+
secret:
33+
secretName: bigip-credentials
34+
imagePullSecrets:
35+
- name: f5-docker-images
36+
37+
---
38+
39+
apiVersion: v1
40+
kind: ServiceAccount
41+
metadata:
42+
name: bigip-ctlr-serviceaccount
43+
namespace: kube-system

docs/_static/config_examples/sample-k8s-bigip-ctlr-secrets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
containers:
1818
- name: k8s-bigip-ctlr
1919
# Specify the path to your image here
20-
image: "docker-registry/username/k8s-bigip-ctlr:v1.4.2"
20+
image: "f5networks/k8s-bigip-ctlr"
2121
env:
2222
# Get sensitive values from the bigip-credentials secret
2323
- name: BIGIP_USERNAME

0 commit comments

Comments
 (0)