Skip to content

Commit

Permalink
update runtime, add nginx transport
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcalalang committed Oct 2, 2023
1 parent 51f202c commit db85e6f
Show file tree
Hide file tree
Showing 10 changed files with 147 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,23 @@ bigip_ready_enabled: []
extension_packages:
install_operations:
- extensionType: do
extensionVersion: 1.37.0
extensionHash: 25dd5256f9fa563e9b2ef9df228d5b01df1aef6b143d7e1c7b9daac822fb91ef
extensionVersion: 1.39.0
extensionHash: 4a67449195a53683a159b42857edd49a757da1a5a2029ccf94c4d6aa11ae4cda
- extensionType: as3
extensionVersion: 3.44.0
extensionHash: 78ecc5a0d3d6410dabb8cc2a80d3a7287a524b6f7ad4c8ff2c83f11947f597db
extensionVersion: 3.46.0
extensionHash: 9550bcdcd1ffe1f002fa5e3c71b8818877d9c7e161f5c68027c82ad85e56e924
- extensionType: ts
extensionVersion: 1.33.0
extensionHash: 573d8cf589d545b272250ea19c9c124cf8ad5bcdd169dbe2139e82ce4d51a449
- extensionType: fast
extensionVersion: 1.25.0
extensionHash: 434309179af405e6b663e255d4d3c0a1fd45cac9b561370e350bb8dd8b39761f
extension_services:
service_operations:
- extensionType: do
type: inline
value:
schemaVersion: 1.0.0
schemaVersion: 1.39.0
class: Device
async: true
label: Example 3NIC BIG-IP with Runtime-Init
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,23 @@ bigip_ready_enabled: []
extension_packages:
install_operations:
- extensionType: do
extensionVersion: 1.35.0
extensionHash: 44df23fab10547d5cb0999689b2f9b2a01d7a82e616898b5ccd57172876d2793
extensionVersion: 1.39.0
extensionHash: 4a67449195a53683a159b42857edd49a757da1a5a2029ccf94c4d6aa11ae4cda
- extensionType: as3
extensionVersion: 3.46.0
extensionHash: 9550bcdcd1ffe1f002fa5e3c71b8818877d9c7e161f5c68027c82ad85e56e924
- extensionType: ts
extensionVersion: 1.33.0
extensionHash: 573d8cf589d545b272250ea19c9c124cf8ad5bcdd169dbe2139e82ce4d51a449
- extensionType: fast
extensionVersion: 1.25.0
extensionHash: 434309179af405e6b663e255d4d3c0a1fd45cac9b561370e350bb8dd8b39761f
extension_services:
service_operations:
- extensionType: do
type: inline
value:
schemaVersion: 1.35.0
schemaVersion: 1.39.0
class: Device
async: true
label: BIG-IP with Runtime-Init
Expand Down
2 changes: 1 addition & 1 deletion big-ip/terraform/infrastructure/variables.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tag_owner = "[email protected]"
tag_resource_type = "big-ip"
tag_environment = "lab"
bigip_ready = "300s"
bigip_runtime_init_package_url = "https://cdn.f5.com/product/cloudsolutions/f5-bigip-runtime-init/v1.5.2/dist/f5-bigip-runtime-init-1.5.2-1.gz.run"
bigip_runtime_init_package_url = "https://cdn.f5.com/product/cloudsolutions/f5-bigip-runtime-init/v1.6.2/dist/f5-bigip-runtime-init-1.6.2.gz.run"

allowed_ips = ["208.100.170.10/32", "66.175.245.6/32"]
# Pull from https://api.github.com/meta
Expand Down

This file was deleted.

10 changes: 10 additions & 0 deletions kubernetes/terraform/configuration/helm-releases.tf
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ resource "helm_release" "nginx-plus-ingress" {
value = "true"
}

set {
name = "controller.globalConfiguration.spec"
value = <<EOT
listeners:
- name: tcp-listener
port: 8888
protocol: TCP
EOT
}

set {
name = "controller.enableSnippets"
value = "true"
Expand Down
28 changes: 0 additions & 28 deletions services/argo/terraform/files/manifests/app-onlineboutique.skip

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: 'transport-calalang-net'
namespace: argocd
spec:
project: default
source:
repoURL: 'https://github.com/jmcalalang/lab'
path: services/transport-calalang-net
targetRevision: HEAD
destination:
server: 'https://kubernetes.default.svc'
namespace: transport
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- Replace=true
- CreateNamespace=true
7 changes: 7 additions & 0 deletions services/transport-calalang-net/nginx-org-externalname.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: www-nginx-org-externalname
spec:
type: ExternalName
externalName: nginx.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: secure-app
spec:
replicas: 3
selector:
matchLabels:
app: secure-app
template:
metadata:
labels:
app: secure-app
spec:
containers:
- name: secure-app
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8443
volumeMounts:
- name: secret
mountPath: /etc/nginx/ssl
readOnly: true
- name: config-volume
mountPath: /etc/nginx/conf.d
volumes:
- name: secret
secret:
secretName: app-tls-secret
- name: config-volume
configMap:
name: secure-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: secure-config
data:
app.conf: |-
server {
listen 8443 ssl;
server_name transport.calalang.net;
ssl_certificate /etc/nginx/ssl/tls.crt;
ssl_certificate_key /etc/nginx/ssl/tls.key;
default_type text/plain;
location / {
return 200 "Welcome to TLS server name $ssl_server_name, you reached pod $hostname. You got here at $date_local!\n" ;
}
}
---
apiVersion: v1
kind: Secret
metadata:
name: app-tls-secret
stringData:
tls.crt: "-----BEGIN CERTIFICATE-----\nMIIFLzCCBBegAwIBAgISBBEZZ+e9K/LP4+Rp5ZxRG5kfMA0GCSqGSIb3DQEBCwUA\nMDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD\nEwJSMzAeFw0yMjAxMjcwMzU5NTZaFw0yMjA0MjcwMzU5NTVaMCAxHjAcBgNVBAMT\nFW5ldHNrb3BlLmNhbGFsYW5nLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC\nAQoCggEBAMpOXO03nKPVx5pDl3FTG+7UqeRBiqrSPwKQIP+7LezAUCgD6pBGBqH2\nePZQhwCEebYwpnu2FgOokCLbnHvQH5IS23H4e+sm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bzM312c2O28M3D7j+ApbgTG5qf6CYhsC\nr2iQoqEFUdIL1kJa99zK6MdKMyFqa8KGWE58VTIP2eAf59wNHuoxsnb5Aw1DXPiv\n5x7qsxnJBue6YL59xgznyC8DTUbWAAkkneEh0VDxExWhPHLv3a1c+Kr5hQKBgHW4\nFzBj23cz7n725fE6Ff2LKrObimVfDL5r9LZVtWMh7VGF5XApsRLi8H4Wr7tRXQJg\nuLIynkD/bIKDK6w1AFs7C9XcdzqjrPzV5c/gRyAhHGoaELfEIKpi2DF15CYVD5wr\nUjE8hN3ETy3dMwox5laa5+nWkweeoAuhQIW2TK2xAoGAF8rF4stB4ugLRtFMgAJx\npv5PR/YjMvGcz0iwvhsCnMt2AOEsRviw7woBkYgVc3SkUCIQhqP+fgrP+qnZRP+U\nlo3hNU4uag/MU13rUTw8Sx37TPyInK+q8JfVkY8B8gFW4zRsymCqkCUsD3k4IpKQ\nufxrsNDKrJuRpksOJzfIo7w=\n-----END PRIVATE KEY-----\n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: k8s.nginx.org/v1alpha1
kind: TransportServer
metadata:
name: transport.calalang.net
spec:
listener:
name: tls-passthrough
protocol: TLS_PASSTHROUGH
host: transport.calalang.net
streamSnippets: limit_conn_zone $binary_remote_addr zone=addr:10m;
serverSnippets: |
deny 192.168.1.1;
allow 168.63.129.16;
limit_conn addr 5;
upstreams:
- name: www-nginx-org-externalname
service: www-nginx-org-externalname
port: 443
healthCheck:
enable: true
port: 443
interval: 20s
jitter: 3s
fails: 5
passes: 5
action:
pass: www-nginx-org-externalname

0 comments on commit db85e6f

Please sign in to comment.