Created
May 19, 2016 03:09
-
-
Save ryanschwartz/7024c28891786add1b95f9972d995fb9 to your computer and use it in GitHub Desktop.
kubectl expose not creating correct ports
This file contains hidden or 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
✓ ( 22:04:47 ) ⦿ ryan@juniper | |
▶︎ ~ ▶︎ kg rc vpn -o yaml | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
creationTimestamp: 2016-05-19T02:27:08Z | |
generation: 2 | |
labels: | |
app: vpn | |
name: vpn | |
namespace: default | |
resourceVersion: "549347" | |
selfLink: /api/v1/namespaces/default/replicationcontrollers/vpn | |
uid: 2f441aa5-1d69-11e6-9302-42010af0019d | |
spec: | |
replicas: 1 | |
selector: | |
app: vpn | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: vpn | |
name: vpn | |
spec: | |
containers: | |
- image: johnae/pritunl | |
imagePullPolicy: Always | |
name: vpn | |
ports: | |
- containerPort: 1194 | |
protocol: UDP | |
- containerPort: 1194 | |
protocol: TCP | |
- containerPort: 9070 | |
protocol: TCP | |
resources: {} | |
securityContext: | |
privileged: true | |
terminationMessagePath: /dev/termination-log | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
status: | |
fullyLabeledReplicas: 1 | |
observedGeneration: 2 | |
replicas: 1 |
This file contains hidden or 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
kubectl expose rc vpn --type=LoadBalancer |
This file contains hidden or 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
✓ ( 22:04:52 ) ⦿ ryan@juniper | |
▶︎ ~ ▶︎ kg svc vpn -o yaml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: 2016-05-19T02:54:10Z | |
labels: | |
app: vpn | |
name: vpn | |
namespace: default | |
resourceVersion: "549623" | |
selfLink: /api/v1/namespaces/default/services/vpn | |
uid: f65cfebf-1d6c-11e6-9302-42010af0019d | |
spec: | |
clusterIP: 10.3.255.57 | |
ports: | |
- name: port-1 | |
nodePort: 30481 | |
port: 1194 | |
protocol: TCP | |
targetPort: 1194 | |
- name: port-2 | |
nodePort: 32444 | |
port: 1194 | |
protocol: TCP | |
targetPort: 1194 | |
- name: port-3 | |
nodePort: 30779 | |
port: 9070 | |
protocol: TCP | |
targetPort: 9070 | |
selector: | |
app: vpn | |
sessionAffinity: None | |
type: LoadBalancer | |
status: | |
loadBalancer: | |
ingress: | |
- ip: XXX.XXX.XXX.XXX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment