Last active
December 5, 2017 07:22
-
-
Save masroorhasan/6410a5ef12ac4a21c57eed7d41ae5f5c to your computer and use it in GitHub Desktop.
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
client.CoreApi.CreateNamespacedPod( | |
"default", | |
new V1Pod( | |
Metadata: new V1ObjectMeta(Name: "iis"), | |
Spec: new V1PodSpec( | |
Containers: new List<V1Container> | |
{ | |
new V1Container( | |
Image: "microsoft/iis:nanoserver", | |
Name: "iis", | |
Ports: new List<V1ContainerPort> { new V1ContainerPort(ContainerPort: 80) }) | |
}) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment