Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuritka/tf_infrastructure
tf test
https://github.com/kuritka/tf_infrastructure
Last synced: 24 days ago
JSON representation
tf test
- Host: GitHub
- URL: https://github.com/kuritka/tf_infrastructure
- Owner: kuritka
- Created: 2019-08-13T09:37:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-13T09:39:18.000Z (over 5 years ago)
- Last Synced: 2024-10-05T11:41:30.628Z (about 1 month ago)
- Language: HCL
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.MD
Awesome Lists containing this project
README
Before apply infrastructure create `terraform.tfvars`
### terraform.tfvars
```
subscription_id=xxx
client_id=xxx
client_secret="xxx
tenant_id=xxx
```Because service would expose only private ip's your service would contain following anotataion
```
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
```### hello-node.yaml
```
apiVersion: v1
kind: Service
metadata:
labels:
app: hello-node
name: hello-node
namespace: default
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
#externalTrafficPolicy: Cluster
ports:
- nodePort: 32586
port: 80
protocol: TCP
targetPort: 8080
selector:
app: hello-node
sessionAffinity: None
type: LoadBalancer
```test gw like test like curl -kv https://10.121.36.101
create test machine in correct subnethttps://github.com/terraform-providers/terraform-provider-azurerm/issues/2894