Last active
March 31, 2021 05:27
-
-
Save HeshaniSamarasekara/ba8352144e337d511b339f30b122b7da to your computer and use it in GitHub Desktop.
Ingress.yaml file changes for tcp expose
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
--- | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: tcp-services | |
namespace: my-test-ingress-nginx | |
labels: | |
app.kubernetes.io/name: my-test-ingress-nginx | |
app.kubernetes.io/part-of: my-test-ingress-nginx | |
data: | |
3434: "heshani/server:3434" # The service is running in namespace heshani with the service name server and port 3434 | |
--- | |
Continued | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: my-test-ingress-nginx | |
namespace: my-test-ingress-nginx | |
labels: | |
app.kubernetes.io/name: my-test-ingress-nginx | |
app.kubernetes.io/part-of: my-test-ingress-nginx | |
spec: | |
type: NodePort | |
ports: | |
- name: http | |
port: 80 | |
targetPort: 80 | |
nodePort: 32323 | |
protocol: TCP | |
- name: https | |
port: 443 | |
targetPort: 443 | |
nodePort: 32324 | |
protocol: TCP | |
- name: proxied-tcp-3434 | |
port: 3434 | |
targetPort: 3434 | |
nodePort: 32325 | |
protocol: TCP | |
selector: | |
app.kubernetes.io/name: my-test-ingress-nginx | |
app.kubernetes.io/part-of: my-test-ingress-nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment