cd~/directory-to-store-cluster-data
dockerrun-ti-v~/.aws/:/root/.aws:z-v$(pwd)/:/work:zquay.io/openshift-examples/windows-container-install-helper:latest
cd/work
# Run script, it's not perfect just for me to spinup a OpenShift 4 cluster with a windows workeraws-create-cluster.sh
In order to deploy into a different namespace SCC must be disabled in that namespace. This should never be used in production, and any namespace that this has been done to should not be used to run Linux pods.
oc create -f - <<EOFapiVersion:apps/v1kind:Deploymentmetadata:labels:app:sample-aspnetappname:sample-aspnetappspec:replicas:1selector:matchLabels:app:sample-aspnetappstrategy:type:Recreatetemplate:metadata:labels:app:sample-aspnetappspec:containers:-image:mcr.microsoft.com/dotnet/framework/samples:aspnetappimagePullPolicy:IfNotPresentname:sample-aspnetappports:-containerPort:80protocol:TCPresources:{}terminationMessagePath:/dev/termination-logterminationMessagePolicy:FilednsPolicy:ClusterFirstnodeSelector:beta.kubernetes.io/os:windowstolerations:-key:osvalue:WindowsEOFoc create -f - <<EOFapiVersion:v1kind:Servicemetadata:name:sample-aspnetapplabels:app:sample-aspnetappspec:ports:# the port that this service should serve on-port:80targetPort:80selector:app:sample-aspnetapptype:LoadBalancerEOFoc expose service/sample-aspnetapp