#!/usr/bin/python3

print("Content-Type:text/plain")
print()

import cgi
import subprocess
import time

form = cgi.FieldStorage()
depname = form.getvalue("dn")
imagename = form.getvalue("i")

output = subprocess.getoutput("sudo kubectl create deployment "+depname+" --image="+imagename+" --kubeconfig admin.conf")
print(output)


a33ec0794cd2de2bcabbdbb610782b8edda9b4ce
<mask token>

print('Content-Type:text/plain')
print()
<mask token>
print(output)

print('Content-Type:text/plain')
print()
<mask token>
form = cgi.FieldStorage()
depname = form.getvalue('dn')
imagename = form.getvalue('i')
output = subprocess.getoutput('sudo kubectl create deployment ' + depname +
    ' --image=' + imagename + ' --kubeconfig admin.conf')
print(output)

print('Content-Type:text/plain')
print()
import cgi
import subprocess
import time
form = cgi.FieldStorage()
depname = form.getvalue('dn')
imagename = form.getvalue('i')
output = subprocess.getoutput('sudo kubectl create deployment ' + depname +
    ' --image=' + imagename + ' --kubeconfig admin.conf')
print(output)

#!/usr/bin/python3

print("Content-Type:text/plain")
print()

import cgi
import subprocess
import time

form = cgi.FieldStorage()
depname = form.getvalue("dn")
imagename = form.getvalue("i")

output = subprocess.getoutput("sudo kubectl create deployment "+depname+" --image="+imagename+" --kubeconfig admin.conf")
print(output)

