Last active
February 11, 2019 02:02
-
-
Save shawnho1018/34d9af3be79189436344683333851a53 to your computer and use it in GitHub Desktop.
f5 bigip-ctlr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: k8s-bigip-ctlr-deployment | |
namespace: kube-system | |
spec: | |
# DO NOT INCREASE REPLICA COUNT | |
replicas: 1 | |
template: | |
metadata: | |
name: k8s-bigip-ctlr | |
labels: | |
app: k8s-bigip-ctlr | |
spec: | |
# Name of the Service Account bound to a Cluster Role with the required | |
# permissions | |
serviceAccountName: bigip-ctlr | |
containers: | |
- name: k8s-bigip-ctlr | |
image: "harbor.syspks.com/library/k8s-bigip-ctrl:latest" | |
env: | |
- name: BIGIP_USERNAME | |
valueFrom: | |
secretKeyRef: | |
# Replace with the name of the Secret containing your login | |
# credentials | |
name: bigip-login | |
key: username | |
- name: BIGIP_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
# Replace with the name of the Secret containing your login | |
# credentials | |
name: bigip-login | |
key: password | |
command: ["/app/bin/k8s-bigip-ctlr"] | |
args: [ | |
# See the k8s-bigip-ctlr documentation for information about | |
# all config options | |
# https://clouddocs.f5.com/products/connectors/k8s-bigip-ctlr/latest | |
"--bigip-username=$(BIGIP_USERNAME)", | |
"--bigip-password=$(BIGIP_PASSWORD)", | |
"--bigip-url=f5.syspks.com", | |
"--bigip-partition=kubernetes", | |
"--pool-member-type=nodeport" | |
] | |
imagePullSecrets: | |
# Secret that gives access to a private docker registry | |
- name: f5-docker-images | |
# Secret containing the BIG-IP system login credentials | |
- name: bigip-login | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: bigip-ctlr | |
namespace: kube-system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment